diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2004-03-23 23:12:50 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2004-03-23 23:12:50 +0000 |
| commit | 0bdfab022a52271fe38d193213b846104a4acb32 (patch) | |
| tree | c9cf42a49188b35854848257b99906d849141135 | |
| parent | 3f8a43989d1faf2b099524509a290f3749bee438 (diff) | |
| download | php-git-0bdfab022a52271fe38d193213b846104a4acb32.tar.gz | |
Fixed bug #27661 (snmpget() does not close the socket in some cases).
| -rw-r--r-- | ext/snmp/snmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 94046f2034..2100008a2e 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -436,6 +436,7 @@ retry: } else if (st == 2) { *return_value = *snmpval; zval_copy_ctor(return_value); + snmp_close(ss); return; } else if (st == 3) { add_next_index_zval(return_value,snmpval); /* Add to returned array */ |
