1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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'.
This commit is contained in:
Brian Somers 1999-03-19 00:05:32 +00:00
parent 6f70e1c542
commit 521e2a5300
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44874

View File

@ -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 <sys/param.h>
@ -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);