The branch stable/11 has been updated by eugen:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=271f9f2e8b93f0724d00b5405f8b53f6695408b2

commit 271f9f2e8b93f0724d00b5405f8b53f6695408b2
Author:     Shteryana Shopova <syr...@freebsd.org>
AuthorDate: 2016-10-24 21:05:23 +0000
Commit:     Eugene Grosbein <eu...@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");
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to