From 1108712cb5b14130380c93b00f4e9ef2a797a07d Mon Sep 17 00:00:00 2001 From: Shteryana Shopova Date: Mon, 24 Oct 2016 21:05:23 +0000 Subject: [PATCH] Fix a regression introduced in SVN r256678 that breaks USM header parsing Reviewed by: bz@ --- contrib/bsnmp/lib/snmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/bsnmp/lib/snmp.c b/contrib/bsnmp/lib/snmp.c index 6b9e3e87aaa..a91be77e081 100644 --- a/contrib/bsnmp/lib/snmp.c +++ b/contrib/bsnmp/lib/snmp.c @@ -288,7 +288,7 @@ parse_secparams(struct asn_buf *b, struct snmp_pdu *pdu) memset(buf, 0, 256); tb.asn_ptr = buf; tb.asn_len = 256; - u_int len; + u_int len = 256; if (asn_get_octetstring(b, buf, &len) != ASN_ERR_OK) { snmp_error("cannot parse usm header");