From 22e1b2d50686f7915f6c6541b72999db9dad5323 Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Wed, 1 Oct 2025 16:57:56 +0100 Subject: [PATCH] If the the LDAP query failed to enqueue, then query will be NULL --- src/modules/rlm_ldap/user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/rlm_ldap/user.c b/src/modules/rlm_ldap/user.c index a8798682e9..db8e5627e8 100644 --- a/src/modules/rlm_ldap/user.c +++ b/src/modules/rlm_ldap/user.c @@ -59,6 +59,8 @@ static unlang_action_t ldap_find_user_async_result(unlang_result_t *p_result, re char *dn; fr_pair_t *vp; + if (!query) RETURN_UNLANG_FAIL; + /* * Make the result available to the query */ -- 2.47.3