projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bba1e9a
)
snmp plugin: Fix incorrect comparison in csnmp_oid_compare().
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
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,