From 7cbc2f64298cd96629fffdcfd642f0c1c24adfd2 Mon Sep 17 00:00:00 2001 From: Freddie Akeroyd Date: Wed, 31 Jan 2024 12:41:42 +0000 Subject: [PATCH] Fix return check --- client/castApp/src/casttcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/castApp/src/casttcp.c b/client/castApp/src/casttcp.c index 9b02d40..80f4879 100644 --- a/client/castApp/src/casttcp.c +++ b/client/castApp/src/casttcp.c @@ -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))