net-snmp/net-snmp-5.4-snmpassert.patch

14 lines
633 B
Diff

--- net-snmp-5.4/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c.old 2006-10-19 22:38:00.000000000 +0200
+++ net-snmp-5.4/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c 2007-03-12 15:47:16.000000000 +0100
@@ -204,8 +204,8 @@
DEBUGMSGTL(("ifTable:access", "updating existing entry\n"));
#ifdef USING_IF_MIB_IFXTABLE_IFXTABLE_MODULE
- netsnmp_assert(strcmp(rowreq_ctx->data.ifName,
- ifentry->name) == 0);
+ int rc = strcmp(rowreq_ctx->data.ifName,ifentry->name);
+ netsnmp_assert(rc == 0);
#endif
/*
* if the interface was missing, but came back, clear the