Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db1347d

Browse files
committed
Fix cluster_init_seeds. Thanks @adlagares!
1 parent d23eff9 commit db1347d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cluster_library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ cluster_init_seeds(redisCluster *cluster, HashTable *ht_seeds) {
912912
cluster->read_timeout, cluster->persistent, NULL, 0, 0);
913913

914914
// Index this seed by host/port
915-
key_len = snprintf(key, sizeof(key), "%s:%u", redis_sock->host,
915+
key_len = snprintf(key, sizeof(key), "%s:%u", ZSTR_VAL(redis_sock->host),
916916
redis_sock->port);
917917

918918
// Add to our seed HashTable

0 commit comments

Comments
 (0)