projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
snmp plugin: Fix incorrect comparison in csnmp_oid_compare().
[collectd.git]
/
src
/
snmp.c
diff --git
a/src/snmp.c
b/src/snmp.c
index
d9ee741
..
d440f7f
100644
(file)
--- 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,