snmp plugin: don't read from uninitialized pointer
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Dec 2015 18:31:16 +0000 (19:31 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Dec 2015 18:31:16 +0000 (19:31 +0100)
commit3c3ab1b4489e03ed2344014f7f99e88a7fffbc69
treec991e07562a12352aaeebd222a63646aa7169267
parente96afedbc67f8a508e37b73217c224aa5bd25f66
snmp plugin: don't read from uninitialized pointer

if the first snmp_pdu_create inside the loop returns an error,
we exit the loop with res uninitialized and then call snmp_free_pdu on it.

CID #38037
src/snmp.c