artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a823ed
)
Fix uninitialized variable that coult result in a crash.
author
jca
<jca@openbsd.org>
Fri, 21 Apr 2017 13:46:15 +0000
(13:46 +0000)
committer
jca
<jca@openbsd.org>
Fri, 21 Apr 2017 13:46:15 +0000
(13:46 +0000)
Fix from Rivo Nurges.
usr.sbin/snmpd/trap.c
patch
|
blob
|
history
diff --git
a/usr.sbin/snmpd/trap.c
b/usr.sbin/snmpd/trap.c
index
b141a53
..
2c26332
100644
(file)
--- a/
usr.sbin/snmpd/trap.c
+++ b/
usr.sbin/snmpd/trap.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: trap.c,v 1.2
8 2016/11/09 20:31:56
jca Exp $ */
+/* $OpenBSD: trap.c,v 1.2
9 2017/04/21 13:46:15
jca Exp $ */
/*
* Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org>
@@
-70,6
+70,7
@@
trap_agentx(struct agentx_handle *h, struct agentx_pdu *pdu, int *idx,
*varcpy = NULL;
varbind = NULL;
+ iter = NULL;
seensysuptime = seentrapoid = 0;
if (pdu->hdr->flags & AGENTX_NON_DEFAULT_CONTEXT) {