summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-03-19 00:05:32 +0000
committerbrian <brian@FreeBSD.org>1999-03-19 00:05:32 +0000
commita9a1137a8b9ccafd52106486c9e60fb9e7178283 (patch)
treece2643384378e32b238696035128ec1bf0c9b016 /usr.sbin/ppp/command.c
parent5a0234335003a91a1f5a73362f2353a563046f2d (diff)
downloadFreeBSD-src-a9a1137a8b9ccafd52106486c9e60fb9e7178283.zip
FreeBSD-src-a9a1137a8b9ccafd52106486c9e60fb9e7178283.tar.gz
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'.
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r--usr.sbin/ppp/command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 58dce7f..75888fb 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 <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);
OpenPOWER on IntegriCloud