Skip to content

Commit

Permalink
krb5_wrap: let smb_krb5_renew_ticket() use smb_force_krb5_cc_default_…
Browse files Browse the repository at this point in the history
…name()

Signed-off-by: Stefan Metzmacher <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
  • Loading branch information
metze-samba committed May 14, 2024
1 parent f850bcf commit eb6dc35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/krb5_wrap/krb5_samba.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,12 @@ krb5_error_code smb_krb5_renew_ticket(const char *ccache_string,
}

if (!ccache_string) {
ccache_string = krb5_cc_default_name(context);
/*
* A renew has low risk in mixing different
* ccaches, so we allow callers to pass
* NULL for the default cache.
*/
ccache_string = smb_force_krb5_cc_default_name(context);
}

if (!ccache_string) {
Expand Down

0 comments on commit eb6dc35

Please sign in to comment.