Skip to content

Commit

Permalink
Fix a typo in b6a052f.
Browse files Browse the repository at this point in the history
  • Loading branch information
yossigo authored and michael-grunder committed May 30, 2023
1 parent b6a052f commit 6de326e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6de326e

Please sign in to comment.