From: Ilia Alshanetsky Date: Tue, 23 Mar 2004 23:12:50 +0000 (+0000) Subject: Fixed bug #27661 (snmpget() does not close the socket in some cases). X-Git-Tag: php-5.0.0RC2RC1~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bdfab022a52271fe38d193213b846104a4acb32;p=php Fixed bug #27661 (snmpget() does not close the socket in some cases). --- 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 */