]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If the the LDAP query failed to enqueue, then query will be NULL developer/ndptech
authorNick Porter <nick@portercomputing.co.uk>
Wed, 1 Oct 2025 15:57:56 +0000 (16:57 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 1 Oct 2025 15:57:56 +0000 (16:57 +0100)
src/modules/rlm_ldap/user.c

index a8798682e9b58040eda48ece21a4d69ca0c6fb2b..db8e5627e89de9776dd49773f389dd4ad3a10db4 100644 (file)
@@ -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
         */