diff --git pthread/aget_comb.c pthread/aget_comb.c
index c7d24b4..bd0a90a 100644
--- pthread/aget_comb.c
+++ pthread/aget_comb.c
@@ -1094,7 +1094,7 @@ void *http_get(void *arg )
   tmp = calloc(8192U, sizeof(char ));
   rbuf = (char *)tmp;
   sd = socket(2, 1, 0);
-  if (sd == -1) {
+  if (sd <= -1) {
     tmp___0 = __errno_location();
     tmp___1 = strerror(*tmp___0);
     Log((char *)"<THREAD #%ld> socket creation failed: %s", tid, tmp___1);
