Download raw body.
dhcpd(8): s/inet_aton/inet_pton/
OK?
diff --git dhcpd.c dhcpd.c
index 926df9172af..7144ffdbbee 100644
--- dhcpd.c
+++ dhcpd.c
@@ -147,7 +147,7 @@ main(int argc, char *argv[])
case 'u':
udpsockmode = 1;
if (optarg != NULL) {
- if (inet_aton(optarg, &udpaddr) != 1)
+ if (inet_pton(AF_INET, optarg, &udpaddr) != 1)
errx(1, "Cannot parse binding IP "
"address: %s", optarg);
}
--
In my defence, I have been left unsupervised.
dhcpd(8): s/inet_aton/inet_pton/