Commit 6de326e8 authored by Yossi Gottlieb's avatar Yossi Gottlieb Committed by Michael Grunder
Browse files

Fix a typo in b6a052fe.

parent b6a052fe
...@@ -236,7 +236,7 @@ int redisContextSetTcpUserTimeout(redisContext *c, unsigned int timeout) { ...@@ -236,7 +236,7 @@ int redisContextSetTcpUserTimeout(redisContext *c, unsigned int timeout) {
res = -1; res = -1;
(void)timeout; (void)timeout;
#endif #endif
if (res == -1); { if (res == -1) {
__redisSetErrorFromErrno(c,REDIS_ERR_IO,"setsockopt(TCP_USER_TIMEOUT)"); __redisSetErrorFromErrno(c,REDIS_ERR_IO,"setsockopt(TCP_USER_TIMEOUT)");
redisNetClose(c); redisNetClose(c);
return REDIS_ERR; return REDIS_ERR;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment