freebsd-ports/net-mgmt/net-snmp-devel/files/patch-snmp_agent.c
Jun Kuriyama de310693e8 - Upgrade to 5.2.2.
- Return more appropriate values for hrSWRunType (1)

PR:		ports/86572 (1)
Submitted by:	wollman (1)
2005-11-30 05:22:40 +00:00

10 lines
509 B
C

--- agent/snmp_agent.c.orig Thu Mar 17 17:17:43 2005
+++ agent/snmp_agent.c Wed Nov 30 12:23:41 2005
@@ -839,6 +839,7 @@
;
else if (hosts_ctl("snmpd", STRING_UNKNOWN, STRING_UNKNOWN, STRING_UNKNOWN)){
snmp_log(allow_severity, "Connection from <UNKNOWN> (%s)\n", addr_string);
+ SNMP_FREE(addr_string);
addr_string = strdup("<UNKNOWN>");
} else {
snmp_log(deny_severity, "Connection from <UNKNOWN> (%s) REFUSED\n", addr_string);