getaddrinfo: add EAI_NODATA error code to distinguish NODATA vs NxDomain
[musl] / src / internal / intscan.c
index 65d497e..a4a5ae8 100644 (file)
@@ -29,7 +29,7 @@ unsigned long long __intscan(FILE *f, unsigned base, int pok, unsigned long long
        int c, neg=0;
        unsigned x;
        unsigned long long y;
-       if (base > 36) {
+       if (base > 36 || base == 1) {
                errno = EINVAL;
                return 0;
        }