Bug #14672: confusion about --enable-ucd-snmp-hack
| From: | hps at intermeta dot de | Date: | Sun, 23 Dec 2001 13:54:27 +0000 |
| Subject: | Bug #14672: confusion about --enable-ucd-snmp-hack | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-74863@lists.php.net to get a copy of this message | ||
From: hps@intermeta.de
Operating system: RedHat Linux 6.2
PHP version: 4.1.0
PHP Bug Type: *Compile Issues
Bug description: confusion about --enable-ucd-snmp-hack
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 bug report at: http://bugs.php.net/?id=14672&edit=1