summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-04-16 07:44:05 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-04-16 07:44:05 +0000
commit0c0bcfdc8debc259d7b3733f2dad1a4d4b2994e6 (patch)
tree02cbb398ea04309de79d5393ecaf90221032261c /usr.sbin
parentf691cb702ba59ade461a5cba614c9b32c08e1cb4 (diff)
small fix to compile. spot by marc@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pppd/auth.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c
index 7d1fda10148..b00dcaa79e0 100644
--- a/usr.sbin/pppd/auth.c
+++ b/usr.sbin/pppd/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.28 2003/04/16 01:39:27 deraadt Exp $ */
+/* $OpenBSD: auth.c,v 1.29 2003/04/16 07:44:04 tedu Exp $ */
/*
* auth.c - PPP authentication and phase control.
@@ -77,7 +77,7 @@
#if 0
static char rcsid[] = "Id: auth.c,v 1.37 1998/03/26 04:46:03 paulus Exp $";
#else
-static char rcsid[] = "$OpenBSD: auth.c,v 1.28 2003/04/16 01:39:27 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: auth.c,v 1.29 2003/04/16 07:44:04 tedu Exp $";
#endif
#endif
@@ -1453,6 +1453,7 @@ scan_authfile(f, client, server, ipaddr, secret, addrs, filename)
break;
wordlen = strlen(word); /* NUL in struct wordlist */
ap = (struct wordlist *) malloc(sizeof(struct wordlist) +
+ wordlen);
if (ap == NULL)
novm("authorized addresses");