Commit 58c4a5c1 authored by Trond Myklebust's avatar Trond Myklebust

RPCSEC_GSS: The expiration time passed down in the

    gss context is (duh!) in seconds, not jiffies!

Patch by Bruce Fields
parent 20065001
...@@ -91,7 +91,7 @@ krb5_make_token(struct krb5_ctx *ctx, int qop_req, ...@@ -91,7 +91,7 @@ krb5_make_token(struct krb5_ctx *ctx, int qop_req,
dprintk("RPC: gss_krb5_seal\n"); dprintk("RPC: gss_krb5_seal\n");
now = jiffies; now = get_seconds();
if (qop_req != 0) if (qop_req != 0)
goto out_err; goto out_err;
......
...@@ -178,7 +178,7 @@ krb5_read_token(struct krb5_ctx *ctx, ...@@ -178,7 +178,7 @@ krb5_read_token(struct krb5_ctx *ctx,
if (qop_state) if (qop_state)
*qop_state = GSS_C_QOP_DEFAULT; *qop_state = GSS_C_QOP_DEFAULT;
now = jiffies; now = get_seconds();
ret = GSS_S_CONTEXT_EXPIRED; ret = GSS_S_CONTEXT_EXPIRED;
if (now > ctx->endtime) if (now > ctx->endtime)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment