aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShteryana Shopova <syrinx@FreeBSD.org>2016-10-24 21:05:23 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2021-05-19 12:00:52 +0000
commit271f9f2e8b93f0724d00b5405f8b53f6695408b2 (patch)
treeebfce941a2d03b7f2ee93b06137da12729cccf36
parent33f31648b93e37aa746c5cde68c61b66564f1759 (diff)
downloadsrc-271f9f2e8b93f0724d00b5405f8b53f6695408b2.tar.gz
src-271f9f2e8b93f0724d00b5405f8b53f6695408b2.zip
MFC r307882: bsnmpd: fix SNMPv3
This change fixes SNMPv3 for bsnmpd in stable/11. Note this is already fixed in stable/12 and above. Original commit log: Fix a regression introduced in SVN r256678 that breaks USM header parsing Reviewed by: bz@ (cherry picked from commit 1108712cb5b14130380c93b00f4e9ef2a797a07d)
-rw-r--r--contrib/bsnmp/lib/snmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/bsnmp/lib/snmp.c b/contrib/bsnmp/lib/snmp.c
index d86f88a03fd6..d1dabc8884a0 100644
--- a/contrib/bsnmp/lib/snmp.c
+++ b/contrib/bsnmp/lib/snmp.c
@@ -290,7 +290,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");