Skip to content

Commit

Permalink
Fix return check
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieAkeroyd committed Jan 31, 2024
1 parent 88665ce commit b64cb39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/castApp/src/casttcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int doCasterTCPPhase(caster_t *self)
return -1;

sock.sd = shCreateSocket(AF_INET, SOCK_STREAM, 0);
if(!sock.sd)
if(sock.sd == INVALID_SOCKET)
ERRRET(-1, self, "Failed to create socket");

if(shConnect(&sock, &self->nameserv))
Expand Down

0 comments on commit b64cb39

Please sign in to comment.