summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-05-15 18:58:18 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-05-15 18:58:18 +0000
commit1351e1622cb0e9e9012943703075b43f72ee0bca (patch)
treef8737a29762e800306254d1223e3729fcdc6be00
parent902f8032d0009bd93220717d9456082815982458 (diff)
downloaddrakx-1351e1622cb0e9e9012943703075b43f72ee0bca.tar
drakx-1351e1622cb0e9e9012943703075b43f72ee0bca.tar.gz
drakx-1351e1622cb0e9e9012943703075b43f72ee0bca.tar.bz2
drakx-1351e1622cb0e9e9012943703075b43f72ee0bca.tar.xz
drakx-1351e1622cb0e9e9012943703075b43f72ee0bca.zip
fix guess netmask
-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);