svn commit: r299639 - stable/9/contrib/bsnmp/snmp_mibII

Garrett Cooper ngie at FreeBSD.org
Fri May 13 09:16:02 UTC 2016


Author: ngie
Date: Fri May 13 09:16:01 2016
New Revision: 299639
URL: https://svnweb.freebsd.org/changeset/base/299639

Log:
  MFstable/10 r299638:
  
  MFC r298462:
  
  Return `ret` in op_ifentry(..) to mute a -Wunused-but-set-variable warning
  
  This will also now detect error conditions with
  value->var.subs[sub - 1] == LEAF_ifPhysAddress where `string_get(..)`
  could fail if iifp->physaddr and/or iifp->physaddrlen were deemed
  invalid.
  
  CID: 1006551

Modified:
  stable/9/contrib/bsnmp/snmp_mibII/mibII_interfaces.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/contrib/   (props changed)
  stable/9/contrib/bsnmp/   (props changed)
  stable/9/contrib/bsnmp/snmp_mibII/   (props changed)

Modified: stable/9/contrib/bsnmp/snmp_mibII/mibII_interfaces.c
==============================================================================
--- stable/9/contrib/bsnmp/snmp_mibII/mibII_interfaces.c	Fri May 13 09:14:43 2016	(r299638)
+++ stable/9/contrib/bsnmp/snmp_mibII/mibII_interfaces.c	Fri May 13 09:16:01 2016	(r299639)
@@ -356,7 +356,7 @@ op_ifentry(struct snmp_context *ctx, str
 		value->v.oid = ifp->spec_oid;
 		break;
 	}
-	return (SNMP_ERR_NOERROR);
+	return (ret);
 }
 
 /*


More information about the svn-src-stable-9 mailing list