php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14672 confusion about --enable-ucd-snmp-hack
Submitted: 2001-12-23 08:54 UTC Modified: 2002-07-05 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: hps at intermeta dot de Assigned:
Status: No Feedback Package: SNMP related
PHP Version: 4.1.0 OS: RedHat Linux 6.2
Private report: No CVE-ID: None
 [2001-12-23 08:54 UTC] hps at intermeta dot 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. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-22 23:30 UTC] sniper@php.net
reclassified
 [2002-06-04 04:31 UTC] mfischer@php.net
Any update on a fix?
 [2002-07-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC