Code

frontend, client: Properly support IPv6 when handling address strings.
[sysdb.git] / src / frontend / sock.c
index c2a805aa2510fbe168f4e706b52acfec804dabc7..cf187fcb42adc4bffc229f6c20ed208105c9bde5 100644 (file)
@@ -434,7 +434,8 @@ get_type(const char *address)
                        return impl->type;
                }
        }
-       return -1;
+       /* don't report an error, this could be an IPv6 address */
+       return listener_impls[0].type;
 } /* get_type */
 
 static void