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)
This commit is contained in:
parent
33f31648b9
commit
271f9f2e8b
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user