From 09c7086808d8a62abfedf0c20fe621b00683f4c5 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 21 Jan 2015 02:10:16 +1100 Subject: [PATCH] Fix impossible patch -p1 -i crap.patch warning in bind_socket --- src/libckpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libckpool.c b/src/libckpool.c index d5873d8c..03784cf7 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -589,7 +589,7 @@ int bind_socket(char *url, char *port) if (sockd > 0) break; } - if (sockd < 0) { + if (sockd < 0 || p == NULL) { LOGWARNING("Failed to open socket for %s:%s", url, port); goto out; }