mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 22:09:59 +00:00
Fix miscalculated size check
This commit is contained in:
1 parent
189b560efa
commit
71ace097f8
1 file changed
+1
-1
@@ -122,7 +122,7 @@ static int sendMessageAndForget(short ptype, short paylen, const void* payload)
|
||||
err = send(ctlSock, (char*) packet, sizeof(*packet) + paylen, 0);
|
||||
free(packet);
|
||||
|
||||
if (err != sizeof(*packet)) {
|
||||
if (err != sizeof(*packet) + paylen) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user