summaryrefslogtreecommitdiff
path: root/ext/snmp
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-09-23 18:26:02 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-09-23 18:26:02 +0000
commitb9823393ea40cdaa06139d6fdcba75306bfa82a7 (patch)
tree6057b3fa5efc4fd65c5b43a2fb93b0248467af5c /ext/snmp
parenta7ac56848681aa69c00701b57c8915e3f374e732 (diff)
downloadphp-git-b9823393ea40cdaa06139d6fdcba75306bfa82a7.tar.gz
Fixed bug #25636 (SNMP Session not closed on success).
Patch by: nesslage[at]mwsc[dot]edu
Diffstat (limited to 'ext/snmp')
-rw-r--r--ext/snmp/snmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index 3ecf05a52a..1e96aef984 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -427,6 +427,7 @@ retry:
if (st == 1) {
*return_value = *snmpval;
zval_copy_ctor(return_value);
+ snmp_close(ss);
return;
} else if (st == 2) {
*return_value = *snmpval;