summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-07-10 17:51:37 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-07-10 17:51:48 +0200
commitb3290392d9023f47b0840912311138ff58ecbfe3 (patch)
treea2919cf69320655b06ce09e2a0f4b3d6308b5a24
parentb52193977e07506e58d8e32fbbe90016d4a67ebc (diff)
Put back missing socket error check after select(2)
-rw-r--r--net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net.c b/net.c
index 35b6ad2..d967e5b 100644
--- a/net.c
+++ b/net.c
@@ -141,6 +141,9 @@ static int redisContextWaitReady(redisContext *c, int fd, const struct timeval *
return REDIS_ERR;
}
+ if (redisCheckSocketError(c, fd) != REDIS_OK)
+ return REDIS_ERR;
+
return REDIS_OK;
}