1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Fix a regression introduced in SVN r256678 that breaks USM header parsing

Reviewed by:	bz@
This commit is contained in:
Shteryana Shopova 2016-10-24 21:05:23 +00:00
parent 5df976f79e
commit 1108712cb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307882

View File

@ -288,7 +288,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");