Only use KDC offset when we have it
This commit is contained in:

committed by
Nicolas Williams

parent
bd71a22e20
commit
bfc78d11dc
@@ -1147,7 +1147,7 @@ _krb5_get_cred_kdc_any(krb5_context context,
|
||||
krb5_deltat offset;
|
||||
|
||||
ret = krb5_cc_get_kdc_offset(context, ccache, &offset);
|
||||
if (ret) {
|
||||
if (ret == 0) {
|
||||
context->kdc_sec_offset = offset;
|
||||
context->kdc_usec_offset = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user