summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index 7949059aa..770094893 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -313,7 +313,7 @@ char * guess_netmask(char * ip_addr)
log_message("guessing netmask");
- if (!inet_aton(ip_addr, &addr))
+ if (streq(ip_addr, "") || !inet_aton(ip_addr, &addr))
return "";
tmp = ntohl(addr.s_addr);