mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3/libads: clang: Fix Value stored to 'canon_princ' is never read
Fixes: source3/libads/kerberos.c:192:2: warning: Value stored to 'canon_princ' is never read <--[clang] canon_princ = me; ^ ~~ 1 warning generated. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
61c5b891a1
commit
52d20087f6
@ -189,9 +189,10 @@ int kerberos_kinit_password_ext(const char *principal,
|
||||
goto out;
|
||||
}
|
||||
|
||||
canon_princ = me;
|
||||
#ifndef SAMBA4_USES_HEIMDAL /* MIT */
|
||||
canon_princ = my_creds.client;
|
||||
#else
|
||||
canon_princ = me;
|
||||
#endif /* MIT */
|
||||
|
||||
if ((code = krb5_cc_initialize(ctx, cc, canon_princ))) {
|
||||
|
Loading…
Reference in New Issue
Block a user