Fix a typo in b6a052f.

This commit is contained in:
Yossi Gottlieb 2023-05-30 22:34:16 +03:00 committed by Michael Grunder
parent b6a052fe09
commit 6de326e872

2
net.c
View File

@ -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;