]> git.ipfire.org Git - thirdparty/samba.git/commit
auth:creds: Allow to reset the realm by passing NULL
authorAndreas Schneider <asn@samba.org>
Wed, 6 Aug 2025 12:40:34 +0000 (14:40 +0200)
committerAlexander Bokovoy <ab@samba.org>
Mon, 25 Aug 2025 11:03:38 +0000 (11:03 +0000)
commite5608cdb2e5a7ef2641ec0e7b0ce0b4640a02ce1
tree4b264dc2ff02bb338a7467c909944ce52100164d
parente20c64e14fbc6a478cf31e01cf33ae4abc19b1fe
auth:creds: Allow to reset the realm by passing NULL

This is e.g. done by cli_credentials_set_anonymous().

We can't call TALLOC_FREE(cred->realm), as this would break
cli_credentials_shallow_copy().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15893

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
auth/credentials/credentials.c