]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
lib/ldap/map: fix use-after-free in fr_ldap_map_getdn (freed vp appended on parse...
authorAlexander Bainbridge-Sedivy <alex.bainbridge@inkbridge.io>
Wed, 17 Jun 2026 16:12:31 +0000 (12:12 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 18 Jun 2026 14:43:23 +0000 (10:43 -0400)
src/lib/ldap/map.c

index 377116f16c6d2c9f0e4730533cb54a2e5ab071de..38ef7b9b56f393de5e913a069c6722e6f3f3980d 100644 (file)
@@ -223,6 +223,7 @@ static int fr_ldap_map_getdn(TALLOC_CTX *ctx, fr_pair_list_t *out, request_t *re
                RPWDEBUG("Failed parsing value \"%pV\" for attribute %s", dn,
                                 tmpl_attr_tail_da(map->lhs)->name);
                talloc_free(vp);
+               return 0;
        }
 
        fr_pair_append(out, vp);