From b87f5e93a30841776598599f84e635b4f8dbef8d Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Sat, 1 Jul 2000 22:39:27 +0000 Subject: revert + note. --- ext/snmp/snmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/snmp') diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 20c5542ed0..8036201a81 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -217,7 +217,7 @@ void php_snmp(INTERNAL_FUNCTION_PARAMETERS, int st) { * memory it did not allocate */ #ifdef UCD_SNMP_HACK - session.community = (u_char *)estrdup((*a2)->value.str.val); + session.community = (u_char *)strdup((*a2)->value.str.val); /* memory freed by SNMP library, strdup NOT estrdup */ #else session.community = (u_char *)(*a2)->value.str.val; #endif -- cgit v1.2.1