summaryrefslogtreecommitdiff
path: root/ASNMP
diff options
context:
space:
mode:
authormrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-10 18:09:13 +0000
committermrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-10 18:09:13 +0000
commitee3ad953b4ed26be395674d4c838e9c29a544d72 (patch)
tree613f68d7450cfa37a2b36fb4ed995e18b659731d /ASNMP
parent148d040e1641ab8d524a64cbb004a9e2a85f0a72 (diff)
downloadATCD-ee3ad953b4ed26be395674d4c838e9c29a544d72.tar.gz
Eric fix in agent code
Diffstat (limited to 'ASNMP')
-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];