projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d16c245
)
snmp plugin: Style fix
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Tue, 26 Sep 2017 15:30:52 +0000
(22:30 +0700)
committer
Florian Forster
<octo@collectd.org>
Wed, 27 Sep 2017 06:16:02 +0000
(08:16 +0200)
Issue: #2291
Signed-off-by: Florian Forster <octo@collectd.org>
src/snmp.c
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
6e26ad5
..
68a3381
100644
(file)
--- a/
src/snmp.c
+++ b/
src/snmp.c
@@
-1363,8
+1363,11
@@
static int csnmp_read_table(host_definition_t *host, data_definition_t *data) {
}
res = NULL;
- /* snmp_sess_synch_response always frees our req PDU */
status = snmp_sess_synch_response(host->sess_handle, req, &res);
+
+ /* snmp_sess_synch_response always frees our req PDU */
+ req = NULL;
+
if ((status != STAT_SUCCESS) || (res == NULL)) {
char *errstr = NULL;