Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-09-25 13:26:40 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-09-25 13:26:40 +0300
commitd7b6e9d4bb47cc1dd4c3db5ff168bc7fc1c056ac (patch)
tree2ec19ce30f306c44c52e6ec440d5966b95a4cab1 /library.c
parent3d8b85259c47bc9fac69a6a0a20dc1d5a35c4a3a (diff)
Revert "Use negative port number to indicate unix socket"
This reverts commit 3d8b85259c47bc9fac69a6a0a20dc1d5a35c4a3a.
Diffstat (limited to 'library.c')
-rw-r--r--library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/library.c b/library.c
index 0ef3e658..6bf42a94 100644
--- a/library.c
+++ b/library.c
@@ -1807,7 +1807,7 @@ PHP_REDIS_API int redis_sock_connect(RedisSock *redis_sock)
schema = estrndup(address, pos - address);
address = pos + sizeof("://") - 1;
}
- if (redis_sock->port < 0) {
+ if (redis_sock->port < 1) {
host_len = snprintf(host, sizeof(host), "unix://%s", address);
usocket = 1;
} else {