From 521e2a5300c5595a750d962db092b7f3e7c7478d Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Fri, 19 Mar 1999 00:05:32 +0000 Subject: [PATCH] Don't forget to fully initialise the configured values for MYADDR and HISADDR in ``set ifaddr'' so that unspecified values don't end up retaining their `width'. --- usr.sbin/ppp/command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 58dce7fd2ef1..75888fb50412 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.187 1999/03/07 15:02:37 brian Exp $ + * $Id: command.c,v 1.188 1999/03/07 18:13:44 brian Exp $ * */ #include @@ -141,7 +141,7 @@ #define NEG_DNS 52 const char Version[] = "2.11"; -const char VersionDate[] = "$Date: 1999/03/07 15:02:37 $"; +const char VersionDate[] = "$Date: 1999/03/07 18:13:44 $"; static int ShowCommand(struct cmdargs const *); static int TerminalCommand(struct cmdargs const *); @@ -1285,8 +1285,8 @@ SetInterfaceAddr(struct cmdargs const *arg) return -1; hisaddr = NULL; - ipcp->cfg.my_range.ipaddr.s_addr = INADDR_ANY; - ipcp->cfg.peer_range.ipaddr.s_addr = INADDR_ANY; + memset(&ipcp->cfg.my_range, '\0', sizeof ipcp->cfg.my_range); + memset(&ipcp->cfg.peer_range, '\0', sizeof ipcp->cfg.peer_range); ipcp->cfg.HaveTriggerAddress = 0; ipcp->cfg.netmask.s_addr = INADDR_ANY; iplist_reset(&ipcp->cfg.peer_list);