freebsd-ports/net-mgmt/net-snmp-devel/files/patch-snmp_agent.c
Jun Kuriyama a3597c82c2 (1) Fix memory leak by connections from <UNKNOWN>.
(2) Take care of large counters on 64bit platforms.

PR:		ports/78807 (1)
Submitted by:	Andriy Gapon <avg@icyb.net.ua> (1),
		Peter Losher <Peter_Losher@isc.org> (2)
Approved by:	portmgr (marcus)
2005-03-22 08:32:48 +00:00

10 lines
395 B
C

--- agent/snmp_agent.c.orig Tue Mar 22 11:11:51 2005
+++ agent/snmp_agent.c Tue Mar 22 11:12:29 2005
@@ -825,6 +825,7 @@
return 0;
}
} else {
+ SNMP_FREE(addr_string);
if (hosts_ctl("snmpd", STRING_UNKNOWN, STRING_UNKNOWN, STRING_UNKNOWN)){
snmp_log(allow_severity, "Connection from <UNKNOWN>\n");
addr_string = strdup("<UNKNOWN>");