mirror of
https://git.k0rb4k.net/K0RB4K/qotd.git
synced 2026-09-27 05:41:00 +00:00
fixed client and server (and added more)
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ int main(int argc, char *argv[]) {
|
||||
puts("payload sent");
|
||||
|
||||
char response[2048];
|
||||
if (recv(sock, response, 2048, 0)) {
|
||||
if (recv(sock, response, 2048, 0) < 0) {
|
||||
puts("receive failed");
|
||||
return 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user