diff options
author | Stef Walter <stef@memberwebs.com> | 2009-09-24 19:45:53 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-09-24 19:45:53 +0000 |
commit | 0c4768bc3ffe30c6ab6f7b40274e41d5f611cc38 (patch) | |
tree | aca531daba32dccc8089d6300e651684a9e42256 | |
parent | 913c1341c5b9ccbd5bd34050618651b4cbb91ccf (diff) |
Clear up SNMP pdu after decoding.
This frees strings.
-rw-r--r-- | common/snmp-engine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/snmp-engine.c b/common/snmp-engine.c index 0c1aa87..9f85321 100644 --- a/common/snmp-engine.c +++ b/common/snmp-engine.c @@ -596,6 +596,7 @@ request_response (int fd, int type, void* arg) req = hsh_get (snmp_processing, &id, sizeof (id)); if(!req) { log_debug ("received extra, cancelled or delayed packet from: %s", hostname); + snmp_pdu_clear (&pdu); return; } @@ -622,6 +623,7 @@ request_response (int fd, int type, void* arg) request_failure (req, pdu.error_status); } + snmp_pdu_clear (&pdu); } static void |