From: Nick Porter Date: Mon, 31 Mar 2025 10:42:39 +0000 (+0100) Subject: Return correctly after parsing error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093b4a82ca0cf0ce3161b8885f1df1b7239166f9;p=thirdparty%2Ffreeradius-server.git Return correctly after parsing error --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index 2055efdc491..41668a829ba 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -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),