]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ensure server controls start of NULL terminated
authorNick Porter <nick@portercomputing.co.uk>
Mon, 10 Feb 2025 11:48:31 +0000 (11:48 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 10 Feb 2025 11:48:31 +0000 (11:48 +0000)
src/modules/rlm_ldap/rlm_ldap.c

index 16a59397aa739a351e30459bca94982a5d136d52..24900bcd5eb628e3110ce58149720e204b70f1bf 100644 (file)
@@ -777,6 +777,8 @@ static xlat_action_t ldap_xlat(UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out,
                LDAPControl     *serverctrls[LDAP_MAX_CONTROLS];
                int             i;
 
+               serverctrls[0] = NULL;
+
                if (fr_ldap_parse_url_extensions(serverctrls, NUM_ELEMENTS(serverctrls),
                                                 query->ldap_url->lud_exts) < 0) {
                        RPERROR("Parsing URL extensions failed");