diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/command.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 8866badb18d..e5ee56d617c 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.9 1997/12/18 01:10:25 brian Exp $ + * $Id: command.c,v 1.10 1997/12/19 18:12:08 brian Exp $ * */ #include <sys/param.h> @@ -1260,8 +1260,10 @@ SetInterfaceAddr(struct cmdargs const *arg) IpcpInfo.his_ipaddr.s_addr = DefHisAddress.ipaddr.s_addr; if ((mode & MODE_AUTO) && - OsSetIpaddress(DefMyAddress.ipaddr, DefHisAddress.ipaddr) < 0) + OsSetIpaddress(DefMyAddress.ipaddr, DefHisAddress.ipaddr) < 0) { + DefMyAddress.ipaddr.s_addr = DefHisAddress.ipaddr.s_addr = 0L; return 4; + } } return 0; |