summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
index a6d14a2..4f71c58 100644
--- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
+++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
@@ -469,7 +469,7 @@ snmp_leaf_insert(struct snmp_toolinfo *snmptoolctx, struct snmp_oid2str *entry)
static int32_t
snmp_index_insert(struct snmp_idxlist *headp, struct index *idx)
{
- if (headp == NULL || index == NULL)
+ if (headp == NULL || idx == NULL)
return (-1);
STAILQ_INSERT_TAIL(headp, idx, link);
OpenPOWER on IntegriCloud