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)
break;
}
if (sockd < 0 || p == NULL) {
if (sockd < 1 || p == NULL) {
LOGWARNING("Failed to open socket for %s:%s", url, port);
goto out;
}

Loading…
Cancel
Save