diff options
author | 1998-06-07 17:10:33 +0000 | |
---|---|---|
committer | 1998-06-07 17:10:33 +0000 | |
commit | e7b8090b2b818365f66c8df1f4bf14b52cbc382c (patch) | |
tree | 477ac877c62fdde68bfeb7d7cb53c205604577c2 | |
parent | Fix previous commit. bit 1 is the execute bit, not the read bit *blush* (diff) | |
download | wireguard-openbsd-e7b8090b2b818365f66c8df1f4bf14b52cbc382c.tar.xz wireguard-openbsd-e7b8090b2b818365f66c8df1f4bf14b52cbc382c.zip |
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>
-rw-r--r-- | usr.sbin/ppp/command.c | 9 |
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; } |