summaryrefslogtreecommitdiff
path: root/ASNMP/asnmp/transaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ASNMP/asnmp/transaction.cpp')
-rw-r--r--ASNMP/asnmp/transaction.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/ASNMP/asnmp/transaction.cpp b/ASNMP/asnmp/transaction.cpp
index d9085d5bf58..2f29cf79544 100644
--- a/ASNMP/asnmp/transaction.cpp
+++ b/ASNMP/asnmp/transaction.cpp
@@ -122,19 +122,18 @@ int transaction::handle_input (ACE_HANDLE)
delete [] (char*) receive_iovec_.iov_base;
reset_receive_buffer(receive_iovec_);
int rc = session_.recv(&receive_iovec_, receive_addr_, 0);
- if (rc == -1) {
+ if (rc == -1)
+ {
delete [] (char*) receive_iovec_.iov_base;
reset_receive_buffer(receive_iovec_);
if (result_)
- result_->result(this, SNMP_CLASS_RESOURCE_UNAVAIL);
+ result_->result(this, SNMP_CLASS_RESOURCE_UNAVAIL);
return SNMP_CLASS_RESOURCE_UNAVAIL;
- }
+ }
if (result_)
- {
- result_->result(this, rc);
- return 0;
- }
- return rc;
+ result_->result(this, rc);
+
+ return 0;
}
int transaction::handle_timeout(const ACE_Time_Value &,