snmp plugin: Check the return value of csnmp_oid_suffix().
authorFlorian Forster <octo@collectd.org>
Wed, 3 Oct 2012 06:32:20 +0000 (08:32 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 3 Oct 2012 06:32:20 +0000 (08:32 +0200)
commitbba1e9a442fc723a1b83648e40ba07900ffac91d
tree07ce12a24e2d1ee3163806c3bb46735f0ad09b7b
parentb4f54ca965c7895c46fa9211085025fb499b00e3
snmp plugin: Check the return value of csnmp_oid_suffix().

Also fix an issue where the complete OID is compared with only the suffix.

Thanks to Mark Juric to test the changes and point out these problems.

Issue: #131
src/snmp.c