From 44c9926462e184540504621da51593b33294fa87 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 4 Oct 2012 07:57:25 +0200 Subject: [PATCH] snmp plugin: Fix incorrect comparison in csnmp_oid_compare(). --- src/snmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.11.0