fixed client and server (and added more)

This commit is contained in:
Arthur-Coppey
2021-08-22 01:01:57 +02:00
parent 4b575cf3b9
commit 68f3bf78de
3 changed files with 28 additions and 6 deletions

View File

@@ -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;
}