summaryrefslogtreecommitdiff
path: root/ext/snmp
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-05-02 21:13:54 +0000
committerJani Taskinen <jani@php.net>2009-05-02 21:13:54 +0000
commit16c3b8f1491f36b5d186e4f28d3a27619fad0887 (patch)
tree7f31242c818686307d8061b61172f4b322c4ffae /ext/snmp
parent2f22d5a1649639d4b61a0e2f7b80de6fd86edf58 (diff)
downloadphp-git-16c3b8f1491f36b5d186e4f28d3a27619fad0887.tar.gz
MFH:- Revert bad patch (which caused bug #48133)
Diffstat (limited to 'ext/snmp')
-rw-r--r--ext/snmp/snmp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index de8e705af7..9c6c6b443c 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -655,13 +655,13 @@ retry:
*return_value = *snmpval;
zval_copy_ctor(return_value);
zval_ptr_dtor(&snmpval);
- snmp_free_pdu(pdu);
+ snmp_free_pdu(response);
snmp_close(ss);
return;
} else if (st == SNMP_CMD_GETNEXT) {
*return_value = *snmpval;
zval_copy_ctor(return_value);
- snmp_free_pdu(pdu);
+ snmp_free_pdu(response);
snmp_close(ss);
return;
} else if (st == SNMP_CMD_WALK) {
@@ -700,28 +700,28 @@ retry:
}
if (st == SNMP_CMD_GET) {
if ((pdu = snmp_fix_pdu(response, SNMP_MSG_GET)) != NULL) {
- snmp_free_pdu(pdu);
+ snmp_free_pdu(response);
goto retry;
}
} else if (st == SNMP_CMD_SET) {
if ((pdu = snmp_fix_pdu(response, SNMP_MSG_SET)) != NULL) {
- snmp_free_pdu(pdu);
+ snmp_free_pdu(response);
goto retry;
}
} else if (st == SNMP_CMD_GETNEXT) {
if ((pdu = snmp_fix_pdu(response, SNMP_MSG_GETNEXT)) != NULL) {
- snmp_free_pdu(pdu);
+ snmp_free_pdu(response);
goto retry;
}
} else if (st >= SNMP_CMD_WALK) { /* Here we do walks. */
if ((pdu = snmp_fix_pdu(response, ((session->version == SNMP_VERSION_1)
? SNMP_MSG_GETNEXT
: SNMP_MSG_GETBULK))) != NULL) {
- snmp_free_pdu(pdu);
+ snmp_free_pdu(response);
goto retry;
}
}
- snmp_free_pdu(pdu);
+ snmp_free_pdu(response);
snmp_close(ss);
if (st == SNMP_CMD_WALK || st == SNMP_CMD_REALWALK) {
zval_dtor(return_value);