Switch from inet_aton() to inet_pton().
[paraslash.git] / http_send.c
index 3f03f00..7ee3e55 100644 (file)
@@ -464,7 +464,7 @@ static void init_access_control_list(void)
                if (!p)
                        goto err;
                *p = '\0';
-               if (!inet_aton(arg, &scd.addr))
+               if (!inet_pton(AF_INET, arg, &scd.addr))
                        goto err;
                scd.netmask = atoi(++p);
                if (scd.netmask < 0 || scd.netmask > 32)