From: Florian Forster Date: Thu, 4 Oct 2012 05:57:25 +0000 (+0200) Subject: snmp plugin: Fix incorrect comparison in csnmp_oid_compare(). X-Git-Tag: collectd-5.0.5~3^2^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=44c9926462e184540504621da51593b33294fa87;p=collectd.git snmp plugin: Fix incorrect comparison in csnmp_oid_compare(). --- diff --git a/src/snmp.c b/src/snmp.c index d9ee7414..d440f7fe 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -123,7 +123,7 @@ static int csnmp_oid_suffix (oid_t *dst, oid_t const *src, oid_t const *root) { /* Make sure "src" is in "root"s subtree. */ - if (src->oid_len >= root->oid_len) + if (src->oid_len <= root->oid_len) return (EINVAL); if (snmp_oid_ncompare (root->oid, root->oid_len, src->oid, src->oid_len,