remove unused MIN macro from getdelim source file
[musl] / src / network / getaddrinfo.c
index c88d558..b9439f7 100644 (file)
@@ -20,6 +20,8 @@ int getaddrinfo(const char *restrict host, const char *restrict serv, const stru
                } sa;
        } *out;
 
+       if (!host && !serv) return EAI_NONAME;
+
        if (hint) {
                family = hint->ai_family;
                flags = hint->ai_flags;