/*
- * $Id: snmp_core.cc,v 1.51 2001/08/30 09:51:40 hno Exp $
+ * $Id: snmp_core.cc,v 1.52 2002/02/13 00:50:34 hno Exp $
*
* DEBUG: section 49 SNMP support
* AUTHOR: Glenn Chisholm
snmp_rq->outbuf = xmalloc(snmp_rq->outlen = SNMP_REQUEST_SIZE);
xmemcpy(&snmp_rq->from, &from, sizeof(struct sockaddr_in));
snmpDecodePacket(snmp_rq);
+ xfree(snmp_rq->outbuf);
xfree(snmp_rq);
} else {
debug(49, 1) ("snmpHandleUdp: FD %d recvfrom: %s\n", sock, xstrerror());
inet_ntoa(rq->from.sin_addr));
snmp_free_pdu(PDU);
}
+ if (Community)
+ free(Community);
}
/*
snmp_build(&Session, RespPDU, rq->outbuf, &rq->outlen);
sendto(rq->sock, rq->outbuf, rq->outlen, 0, (struct sockaddr *) &rq->from, sizeof(rq->from));
snmp_free_pdu(RespPDU);
- xfree(rq->outbuf);
}
}