diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index ecab28cdb79..020d51864e0 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.113 1997/12/18 00:28:35 brian Exp $ + * $Id: command.c,v 1.114 1997/12/18 01:10:13 brian Exp $ * */ #include @@ -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;