From owner-dev-commits-src-all@freebsd.org Wed May 19 12:05:19 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 082AF63FFC9; Wed, 19 May 2021 12:05:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FlWlf6rC8z3Hbw; Wed, 19 May 2021 12:05:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CF1B1124EE; Wed, 19 May 2021 12:05:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14JC5Iov054851; Wed, 19 May 2021 12:05:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14JC5Ixj054850; Wed, 19 May 2021 12:05:18 GMT (envelope-from git) Date: Wed, 19 May 2021 12:05:18 GMT Message-Id: <202105191205.14JC5Ixj054850@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 271f9f2e8b93 - stable/11 - MFC r307882: bsnmpd: fix SNMPv3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/11 X-Git-Reftype: branch X-Git-Commit: 271f9f2e8b93f0724d00b5405f8b53f6695408b2 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2021 12:05:19 -0000 The branch stable/11 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=271f9f2e8b93f0724d00b5405f8b53f6695408b2 commit 271f9f2e8b93f0724d00b5405f8b53f6695408b2 Author: Shteryana Shopova AuthorDate: 2016-10-24 21:05:23 +0000 Commit: Eugene Grosbein 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");