fix out-of-bounds reads in __dns_parse
[musl] / src / network / lookup_serv.c
index 403b12a..ae38277 100644 (file)
@@ -3,6 +3,7 @@
 #include <netdb.h>
 #include <ctype.h>
 #include <string.h>
+#include <stdlib.h>
 #include <fcntl.h>
 #include <errno.h>
 #include "lookup.h"