From ac363c7ad5b5a5350ab0d4dc1fb19fdffa63f094 Mon Sep 17 00:00:00 2001 From: jca Date: Fri, 21 Apr 2017 13:46:15 +0000 Subject: [PATCH] Fix uninitialized variable that coult result in a crash. Fix from Rivo Nurges. --- usr.sbin/snmpd/trap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -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) { -- 2.20.1