Bug #14672 Updated: confusion about --enable-ucd-snmp-hack
| From: | mfischer@php.net | Date: | Tue, 04 Jun 2002 08:31:45 +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-9427@lists.php.net to get a copy of this message | ||
ID: 14672
Updated by: mfischer@php.net
Reported By: hps@intermeta.de
-Status: Open
+Status: Feedback
Bug Type: SNMP related
Operating System: RedHat Linux 6.2
PHP Version: 4.1.0
New Comment:
Any update on a fix?
Previous Comments:
------------------------------------------------------------------------
[2002-04-22 23:30:10] sniper@php.net
reclassified
------------------------------------------------------------------------
[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