snmp plugin: don't read from uninitialized pointer
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Dec 2015 18:31:16 +0000 (19:31 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 12 Jan 2016 06:55:01 +0000 (07:55 +0100)
commit3a2d7481341d647ca194861dc93d5f309d28e36b
tree648b84649314fb2a6c93d8cba5706875b9bf631c
parent84bf5e22635704f34a0d456ac3d2481ebe0e3672
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