From feeeb25ddfc57e710a8bfe24b490da823845fc28 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 5 Apr 2011 01:50:12 +1000 Subject: [PATCH] don't return GSS_S_CREDENTIALS_EXPIRED if no expiry time --- mech_eap/accept_sec_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mech_eap/accept_sec_context.c b/mech_eap/accept_sec_context.c index 16e60fb..e73958e 100644 --- a/mech_eap/accept_sec_context.c +++ b/mech_eap/accept_sec_context.c @@ -121,7 +121,7 @@ acceptReadyEap(OM_uint32 *minor, gss_ctx_id_t ctx, gss_cred_id_t cred) if (GSS_ERROR(major)) return major; - if (ctx->expiryTime < time(NULL)) { + if (ctx->expiryTime != 0 && ctx->expiryTime < time(NULL)) { *minor = GSSEAP_CRED_EXPIRED; return GSS_S_CREDENTIALS_EXPIRED; } -- 2.1.4