Only use KDC offset when we have it

This commit is contained in:
Viktor Dukhovni
2015-04-13 17:44:38 -05:00
committed by Nicolas Williams
parent bd71a22e20
commit bfc78d11dc

View File

@@ -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;
}