diff options
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |