diff options
| author | 2017-04-21 13:46:15 +0000 | |
|---|---|---|
| committer | 2017-04-21 13:46:15 +0000 | |
| commit | ac363c7ad5b5a5350ab0d4dc1fb19fdffa63f094 (patch) | |
| tree | f8595b63785e980da9292e3d87c4abd091b7b09a | |
| parent | Do not run the config file in the context of the first client, instead (diff) | |
| download | wireguard-openbsd-ac363c7ad5b5a5350ab0d4dc1fb19fdffa63f094.tar.xz wireguard-openbsd-ac363c7ad5b5a5350ab0d4dc1fb19fdffa63f094.zip | |
Fix uninitialized variable that coult result in a crash.
Fix from Rivo Nurges.
| -rw-r--r-- | usr.sbin/snmpd/trap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/trap.c b/usr.sbin/snmpd/trap.c index b141a530b87..2c26332bf48 100644 --- a/usr.sbin/snmpd/trap.c +++ b/usr.sbin/snmpd/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.28 2016/11/09 20:31:56 jca Exp $ */ +/* $OpenBSD: trap.c,v 1.29 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) { |
