]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Return correctly after parsing error
authorNick Porter <nick@portercomputing.co.uk>
Mon, 31 Mar 2025 10:42:39 +0000 (11:42 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 31 Mar 2025 10:42:39 +0000 (11:42 +0100)
src/modules/rlm_ldap/rlm_ldap.c

index 2055efdc4911d9e774b642f4f619c1ae1cd1aeb8..41668a829ba4b04cc7d7bf5bf39e013741650ece 100644 (file)
@@ -766,6 +766,7 @@ static xlat_action_t ldap_xlat(UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out,
            (strcmp(ldap_url->lud_attrs[0], "*") == 0) || ldap_url->lud_attrs[1]) {
                REDEBUG("Bad attributes list in LDAP URL. URL must specify exactly one attribute to retrieve");
                ldap_free_urldesc(ldap_url);
+               return XLAT_ACTION_FAIL;
        }
 
        query = fr_ldap_search_alloc(unlang_interpret_frame_talloc_ctx(request),