equal
deleted
inserted
replaced
1 --- a/agent/mibgroup/ucd-snmp/proxy.c 2006-10-17 18:16:29.000000000 +0200 |
|
2 +++ b/agent/mibgroup/ucd-snmp/proxy.c 2012-03-27 09:02:10.488425400 +0200 |
|
3 @@ -396,6 +396,8 @@ |
|
4 |
|
5 if (!pdu || !sp) { |
|
6 netsnmp_set_request_error(reqinfo, requests, SNMP_ERR_GENERR); |
|
7 + if (pdu) |
|
8 + snmp_free_pdu(pdu); |
|
9 return SNMP_ERR_NOERROR; |
|
10 } |
|
11 |
|
12 @@ -408,6 +410,8 @@ |
|
13 /* |
|
14 * too large |
|
15 */ |
|
16 + if (pdu) |
|
17 + snmp_free_pdu(pdu); |
|
18 snmp_log(LOG_ERR, |
|
19 "proxy oid request length is too long\n"); |
|
20 return SNMP_ERR_NOERROR; |
|
21 @@ -437,6 +441,8 @@ |
|
22 */ |
|
23 if (!proxy_fill_in_session(handler, reqinfo, (void **)&configured)) { |
|
24 netsnmp_set_request_error(reqinfo, requests, SNMP_ERR_GENERR); |
|
25 + if (pdu) |
|
26 + snmp_free_pdu(pdu); |
|
27 return SNMP_ERR_NOERROR; |
|
28 } |
|
29 |
|