All pastes #63315 Raw Edit

Anonymous

public text v1 · immutable
#63315 ·published 2006-06-09 12:48 UTC
rendered paste body
Index: apps/snmptrapd_auth.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/apps/snmptrapd_auth.c,v
retrieving revision 1.7.2.2
diff -u -p -r1.7.2.2 snmptrapd_auth.c
--- apps/snmptrapd_auth.c	17 May 2006 22:11:20 -0000	1.7.2.2
+++ apps/snmptrapd_auth.c	9 Jun 2006 12:47:39 -0000
@@ -83,7 +83,7 @@ netsnmp_trapd_auth(netsnmp_pdu          
     }
 
     if (!vacm_is_configured()) {
-        if (newpdu)
+        if (newpdu != pdu)
             snmp_free_pdu(newpdu);
         snmp_log(LOG_WARNING, "No access configuration - dropping trap.\n");
         return NETSNMPTRAPD_HANDLER_FINISH;