From: jca Date: Fri, 21 Apr 2017 13:46:15 +0000 (+0000) Subject: Fix uninitialized variable that coult result in a crash. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ac363c7ad5b5a5350ab0d4dc1fb19fdffa63f094;p=openbsd Fix uninitialized variable that coult result in a crash. Fix from Rivo Nurges. --- 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) {