Close SDK connection if magic value is not correctly received

This commit is contained in:
Adam Honse committed 2026-05-27 13:41:19 -05:00
1 parent 4fe6e45b9f
commit 833778f2a3
2 files changed
+5 -3

No files matched your search

+2 -2
View File
@@ -1075,8 +1075,8 @@ void NetworkServer::ListenThreadFunction(NetworkClientInfo * client_info)
\*---------------------------------------------*/
if(header.pkt_magic[i] != openrgb_sdk_magic[i])
{
LOG_ERROR("[%s] Invalid magic received", NETWORKSERVER);
continue;
LOG_ERROR("[%s] Invalid magic received, closing listener", NETWORKSERVER);
goto listen_done;
}
}