summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bba1e9a)
raw | patch | inline | side by side (parent: bba1e9a)
author | Florian Forster <octo@collectd.org> | |
Thu, 4 Oct 2012 05:57:25 +0000 (07:57 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 4 Oct 2012 05:57:25 +0000 (07:57 +0200) |
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index d9ee74140523935d909b1b107780e63f828a4cfa..d440f7fee48ccf09797e0d6bf20d6e41c2db6c06 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
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,