From dc0ae7a199e56255a1baf96ed4bd804b168daca7 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Wed, 19 Nov 2014 17:54:09 +0100 Subject: [PATCH] snmp: avoid freeing req under normal operation Equivalent patch to 79e90bba5, to avoid issue #804 introduced while fixing #610. --- src/snmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/snmp.c b/src/snmp.c index dacdedea..8ab2bf8e 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1377,6 +1377,8 @@ static int csnmp_read_table (host_definition_t *host, data_definition_t *data) snmp_free_pdu (res); res = NULL; + /* snmp_synch_response already freed our PDU */ + req = NULL; sfree (errstr); csnmp_host_close_session (host); -- 2.30.2