From: Nick Porter Date: Wed, 1 Oct 2025 15:57:56 +0000 (+0100) Subject: If the the LDAP query failed to enqueue, then query will be NULL X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fdeveloper%2Fndptech;p=thirdparty%2Ffreeradius-server.git If the the LDAP query failed to enqueue, then query will be NULL --- 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 */