PHP :: Bug #25636 :: SNMP Session not closed
| Bug #25636 | SNMP Session not closed | ||||
|---|---|---|---|---|---|
| Submitted: | 2003-09-23 11:58 UTC | Modified: | 2003-09-23 14:24 UTC | ||
| From: | nesslage at mwsc dot edu | Assigned: | |||
| Status: | Closed | Package: | SNMP related | ||
| PHP Version: | 4.3.3 | OS: | RH Linux 7.3 | ||
| Private report: | No | CVE-ID: | None | ||
[2003-09-23 11:58 UTC] nesslage at mwsc dot edu
Description:
------------
In ext/snmp/snmp.c, it is possible to exit php_snmp_internal without closing the snmp session when performing an snmpget. This leads to 'too many open files' errors on a script with many snmpget requests.
Reproduce code:
---------------
ext/snmp/snmp.c: Lines 427 to 430
if (st == 1) {
*return_value = *snmpval;
zval_copy_ctor(return_value);
return;
should be changed to:
if (st == 1) {
*return_value = *snmpval;
zval_copy_ctor(return_value);
snmp_close(ss);
return;
Expected result:
----------------
No more 'too many open files' errors.
Actual result:
--------------
No more 'too many open files' errors.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-09-23 14:24 UTC] iliaa@php.net