dhcpd: apparently, sometimes IP is in ciaddr, not requested_ip...
[oweals/busybox.git] / networking / netstat.c
index 149a81ee4f830fa972e21296fbe8b64f4b649e1c..8b7a57405b3007ce73b654afca8161b2770c6f3c 100644 (file)
@@ -437,7 +437,7 @@ static int FAST_FUNC tcp_do_one(char *line)
        ) \
 )
 #else
-# define NOT_NULL_ADDR(A) (A.sin_addr.s_addr)
+# define NOT_NULL_ADDR(A) (A.sin.sin_addr.s_addr)
 #endif
 
 static int FAST_FUNC udp_do_one(char *line)