svn commit: r307882 - head/contrib/bsnmp/lib

Shteryana Shopova syrinx at FreeBSD.org
Mon Oct 24 21:05:24 UTC 2016


Author: syrinx
Date: Mon Oct 24 21:05:23 2016
New Revision: 307882
URL: https://svnweb.freebsd.org/changeset/base/307882

Log:
  Fix a regression introduced in SVN r256678 that breaks USM header parsing
  
  Reviewed by:	bz@

Modified:
  head/contrib/bsnmp/lib/snmp.c

Modified: head/contrib/bsnmp/lib/snmp.c
==============================================================================
--- head/contrib/bsnmp/lib/snmp.c	Mon Oct 24 20:53:44 2016	(r307881)
+++ head/contrib/bsnmp/lib/snmp.c	Mon Oct 24 21:05:23 2016	(r307882)
@@ -288,7 +288,7 @@ parse_secparams(struct asn_buf *b, struc
 	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");


More information about the svn-src-all mailing list