Date: Wed, 19 May 2021 12:05:18 GMT From: Eugene Grosbein <eugen@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 271f9f2e8b93 - stable/11 - MFC r307882: bsnmpd: fix SNMPv3 Message-ID: <202105191205.14JC5Ixj054850@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/11 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=271f9f2e8b93f0724d00b5405f8b53f6695408b2 commit 271f9f2e8b93f0724d00b5405f8b53f6695408b2 Author: Shteryana Shopova <syrinx@FreeBSD.org> AuthorDate: 2016-10-24 21:05:23 +0000 Commit: Eugene Grosbein <eugen@FreeBSD.org> CommitDate: 2021-05-19 12:00:52 +0000 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) --- 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 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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105191205.14JC5Ixj054850>