summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net.c b/net.c
index fa0dabe..60a2dc7 100644
--- a/net.c
+++ b/net.c
@@ -422,8 +422,8 @@ int redisContextConnectUnix(redisContext *c, const char *path, const struct time
return REDIS_ERR;
c->connection_type = REDIS_CONN_UNIX;
- if (c->unix.path != path)
- c->unix.path = strdup(path);
+ if (c->unix_sock.path != path)
+ c->unix_sock.path = strdup(path);
if (timeout) {
if (c->timeout != timeout) {