Browse Source

Fix impossible sockd < 1 scenario

master
Con Kolivas 10 years ago
parent
commit
ff01a1c414
  1. 2
      src/libckpool.c

2
src/libckpool.c

@ -589,7 +589,7 @@ int bind_socket(char *url, char *port)
if (sockd > 0) if (sockd > 0)
break; break;
} }
if (sockd < 0 || p == NULL) { if (sockd < 1 || p == NULL) {
LOGWARNING("Failed to open socket for %s:%s", url, port); LOGWARNING("Failed to open socket for %s:%s", url, port);
goto out; goto out;
} }

Loading…
Cancel
Save