Bug #14672 Updated: confusion about --enable-ucd-snmp-hack
| From: | sniper@php.net | Date: | Tue, 23 Apr 2002 03:30:10 +0000 |
| Subject: | Bug #14672 Updated: confusion about --enable-ucd-snmp-hack | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5601@lists.php.net to get a copy of this message | ||
ID: 14672
Updated by: sniper@php.net
Reported By: hps@intermeta.de
Status: Open
-Bug Type: *Compile Issues
+Bug Type: SNMP related
Operating System: RedHat Linux 6.2
PHP Version: 4.1.0
New Comment:
reclassified
Previous Comments:
------------------------------------------------------------------------
[2001-12-23 08:54:27] hps@intermeta.de
In recent ucd-snmp versions, the function
snmp_synch_setup(session *) is just a dummy:
/* synch_reset and synch_setup are no longer used. */
void snmp_synch_reset (struct snmp_session * notused) {}
void snmp_synch_setup (struct snmp_session * notused) {}
(ucd-snmp 4.2.1 as supplied by RedHat for RHL 6.2)
If you enable ucd-snmp-hack with this snmp-version, you
get a resource leak, because you strdup() the session
community and the value is _not_ freed as stated in the
ext/snmp/snmp.c module.
The whole code seems pretty bogus to me, I'll try to get
a fix later.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14672&edit=1