diff --git a/daemon/redis.c b/daemon/redis.c index 1e969915b2..d7cd6330db 100644 --- a/daemon/redis.c +++ b/daemon/redis.c @@ -923,8 +923,10 @@ static int redis_hash_get_endpoint(struct endpoint *out, const struct redis_hash if (redis_hash_get_str(&s, h, k)) return -1; - if (endpoint_parse_any(out, s.s)) - return -1; + if (s.len) { + if (endpoint_parse_any(out, s.s)) + return -1; + } return 0; }