author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Dec 2015 18:31:16 +0000 (19:31 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Dec 2015 18:31:16 +0000 (19:31 +0100) | ||
commit | 3c3ab1b4489e03ed2344014f7f99e88a7fffbc69 | |
tree | c991e07562a12352aaeebd222a63646aa7169267 | tree | snapshot |
parent | e96afedbc67f8a508e37b73217c224aa5bd25f66 | commit | diff |
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
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 | diff | blob | history |