]> granicus.if.org Git - php/commitdiff
Fixed bug #27661 (snmpget() does not close the socket in some cases).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 23 Mar 2004 23:12:50 +0000 (23:12 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 23 Mar 2004 23:12:50 +0000 (23:12 +0000)
ext/snmp/snmp.c

index 94046f20340596d93de91729943a59005fabebd7..2100008a2e8fde8f378ca8b393e7ca94883a0616 100644 (file)
@@ -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 */