]> 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)
committerJule Anger <janger@samba.org>
Thu, 28 Aug 2025 09:38:21 +0000 (09:38 +0000)
commit3985c45ad97a3b2729f3970a8fbcf989a093ca44
tree700beb7dc27ac0ed8347133f1054f27639e2b1c2
parent2788551866a1569648cb38ca9aab744bd38994d6
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>
(cherry picked from commit e5608cdb2e5a7ef2641ec0e7b0ce0b4640a02ce1)
auth/credentials/credentials.c