]> granicus.if.org Git - php/commitdiff
revert + note.
authorSterling Hughes <sterling@php.net>
Sat, 1 Jul 2000 22:39:27 +0000 (22:39 +0000)
committerSterling Hughes <sterling@php.net>
Sat, 1 Jul 2000 22:39:27 +0000 (22:39 +0000)
ext/snmp/snmp.c

index 20c5542ed07f36ab23787b4758c598be1e6f8c0e..8036201a810b56aedddb525d1cdddc1ad3385e59 100644 (file)
@@ -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