summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index ccd7f16..3968acc 100644
--- a/net.c
+++ b/net.c
@@ -236,7 +236,7 @@ int redisContextSetTcpUserTimeout(redisContext *c, unsigned int timeout) {
res = -1;
(void)timeout;
#endif
- if (res == -1); {
+ if (res == -1) {
__redisSetErrorFromErrno(c,REDIS_ERR_IO,"setsockopt(TCP_USER_TIMEOUT)");
redisNetClose(c);
return REDIS_ERR;