summaryrefslogtreecommitdiff
path: root/ASNMP/asnmp/sagent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ASNMP/asnmp/sagent.cpp')
-rw-r--r--ASNMP/asnmp/sagent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ASNMP/asnmp/sagent.cpp b/ASNMP/asnmp/sagent.cpp
index ed616760f64..157dd8606be 100644
--- a/ASNMP/asnmp/sagent.cpp
+++ b/ASNMP/asnmp/sagent.cpp
@@ -46,7 +46,8 @@ int sagent::handle_input(ACE_HANDLE fd)
transaction tr(iv_snmp_session_); // this section needs a better design
tr.handle_input(fd);
char rcv_com_str[MAX_COMM_STR_LEN];
- tr.result(pdu_, rcv_com_str);
+ if (tr.result(pdu_, rcv_com_str) < 0)
+ return 0;
OctetStr community(rcv_com_str);
const ACE_INET_Addr &ta = tr.get_from_addr();
char buf_tmp[MAXHOSTNAMELEN + 1];