artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d0bcde
)
Initialize struct iface by zero. Without this, npppd had used random
author
yasuoka
<yasuoka@openbsd.org>
Wed, 7 May 2014 08:07:53 +0000
(08:07 +0000)
committer
yasuoka
<yasuoka@openbsd.org>
Wed, 7 May 2014 08:07:53 +0000
(08:07 +0000)
configuration.
from Anders Berggren.
usr.sbin/npppd/npppd/parse.y
patch
|
blob
|
history
diff --git
a/usr.sbin/npppd/npppd/parse.y
b/usr.sbin/npppd/npppd/parse.y
index
66c7c89
..
0238acf
100644
(file)
--- a/
usr.sbin/npppd/npppd/parse.y
+++ b/
usr.sbin/npppd/npppd/parse.y
@@
-1,4
+1,4
@@
-/* $OpenBSD: parse.y,v 1.1
0 2014/05/05 04:58:2
3 yasuoka Exp $ */
+/* $OpenBSD: parse.y,v 1.1
1 2014/05/07 08:07:5
3 yasuoka Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@
-874,7
+874,7
@@
interface : INTERFACE STRING ADDRESS in4_addr IPCP STRING {
YYERROR;
}
- if ((n =
malloc(
sizeof(struct iface))) == NULL) {
+ if ((n =
calloc(1,
sizeof(struct iface))) == NULL) {
yyerror("out of memory");
free($2);
YYERROR;