From 647ce534f282c15503d5281038394d851de9e1d0 Mon Sep 17 00:00:00 2001 From: martijn Date: Wed, 2 Jun 2021 08:40:09 +0000 Subject: [PATCH] agentx_context_object_nfind had its ax_oid_cmp arguments swapped. OK bluhm@ --- lib/libagentx/agentx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libagentx/agentx.c b/lib/libagentx/agentx.c index 121d0a5122c..104db42100d 100644 --- a/lib/libagentx/agentx.c +++ b/lib/libagentx/agentx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agentx.c,v 1.9 2021/05/01 16:44:17 martijn Exp $ */ +/* $OpenBSD: agentx.c,v 1.10 2021/06/02 08:40:09 martijn Exp $ */ /* * Copyright (c) 2019 Martijn van Duren * @@ -675,7 +675,7 @@ agentx_context_object_nfind(struct agentx_context *axc, axo = RB_NFIND(axc_objects, &(axc->axc_objects), &axo_search); if (!inclusive && axo != NULL && - ax_oid_cmp(&(axo_search.axo_oid), &(axo->axo_oid)) <= 0) { + ax_oid_cmp(&(axo->axo_oid), &(axo_search.axo_oid)) <= 0) { axo = RB_NEXT(axc_objects, &(axc->axc_objects), axo); } -- 2.20.1