From: wessels <> Date: Wed, 2 Dec 1998 12:51:00 +0000 (+0000) Subject: formatting X-Git-Tag: SQUID_3_0_PRE1~2487 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecd2a33f6306d29845dde3d15b29356d9626854b;p=thirdparty%2Fsquid.git formatting --- diff --git a/src/snmp_core.cc b/src/snmp_core.cc index 83801dc09f..59bfb9593e 100644 --- a/src/snmp_core.cc +++ b/src/snmp_core.cc @@ -1,5 +1,5 @@ /* - * $Id: snmp_core.cc,v 1.20 1998/12/02 05:49:24 glenn Exp $ + * $Id: snmp_core.cc,v 1.21 1998/12/02 05:51:00 wessels Exp $ * * DEBUG: section 49 SNMP support * AUTHOR: Glenn Chisholm @@ -594,17 +594,13 @@ snmpConstructReponse(snmp_request_t * rq, struct snmp_session *Session) { struct snmp_pdu *RespPDU; int ret; - debug(49, 5) ("snmpConstructReponse: Called.\n"); - Session->community = rq->community; Session->community_len = strlen((char *) rq->community); - RespPDU = snmpAgentResponse(rq->PDU); snmp_free_pdu(rq->PDU); xfree(Session); - if (RespPDU == NULL) { - } else { + if (RespPDU != NULL) { ret = snmp_build(Session, RespPDU, rq->outbuf, &rq->outlen); snmpUdpSend(rq->sock, &rq->from, rq->outbuf, rq->outlen); snmp_free_pdu(RespPDU);