summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2023-05-30 22:34:16 +0300
committerMichael Grunder <michael.grunder@gmail.com>2023-05-30 14:05:28 -0700
commit6de326e8721738df0a002bfd5e0ca117a1135930 (patch)
tree94742a6fb15c6f75da89765d79b7ab95340c7561
parentb6a052fe0959dae69e16b9d74449faeb1b70dbe1 (diff)
Fix a typo in b6a052f.
-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;