Skip to content

Commit be5c1f5

Browse files
committed
segfault fix
1 parent 43da980 commit be5c1f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redis.c

+1
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ redis_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
844844

845845
if (redis_sock_server_open(redis->sock, 1 TSRMLS_CC) < 0) {
846846
redis_free_socket(redis->sock);
847+
redis->sock = NULL;
847848
return FAILURE;
848849
}
849850

0 commit comments

Comments
 (0)