summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1998-06-07 17:10:34 +0000
committerbrian <brian@cvs.openbsd.org>1998-06-07 17:10:34 +0000
commitd65f1085091a7ffed91233cf171666ad2f1566a1 (patch)
tree98588e51c4c515c5a852d8e46786d185c2730c56 /usr.sbin
parenta7848e86e8fb27e8e398bdfe6b74e19ec9f239f8 (diff)
Use a width of 0 rather than 32 when HISADDR is 0.0.0.0.
Reported by: many Narrowed down by: Lutz Albers <lutz@muc.de>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/command.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 029ad3ddec2..1402792ba9d 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: command.c,v 1.29 1998/04/25 09:23:13 brian Exp $
+ * $Id: command.c,v 1.30 1998/06/07 17:10:33 brian Exp $
*
*/
#include <sys/param.h>
@@ -1267,14 +1267,15 @@ SetInterfaceAddr(struct cmdargs const *arg)
DefMyAddress.width = 0;
}
IpcpInfo.want_ipaddr.s_addr = DefMyAddress.ipaddr.s_addr;
+
+ if (hisaddr && !UseHisaddr(hisaddr, mode & MODE_AUTO))
+ return 4;
+
if (DefHisAddress.ipaddr.s_addr == 0) {
DefHisAddress.mask.s_addr = 0;
DefHisAddress.width = 0;
}
- if (hisaddr && !UseHisaddr(hisaddr, mode & MODE_AUTO))
- return 4;
-
return 0;
}