diff options
author | David Howells <dhowells@redhat.com> | 2017-08-29 11:15:40 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-08-29 11:55:06 +0200 |
commit | 0a3785855edcdb326ebf052c4f92ebc2710614c6 (patch) | |
tree | 320a5da51eb6837d04992ee9ac6ceee34f9171b0 /net/rxrpc | |
parent | net: rxrpc: Replace time_t type with time64_t type (diff) | |
download | linux-0a3785855edcdb326ebf052c4f92ebc2710614c6.tar.xz linux-0a3785855edcdb326ebf052c4f92ebc2710614c6.zip |
rxrpc: Use correct timestamp from Kerberos 5 ticket
When an XDR-encoded Kerberos 5 ticket is added as an rxrpc-type key, the
expiry time should be drawn from the k5 part of the token union (which was
what was filled in), rather than the kad part of the union.
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc')
-rw-r--r-- | net/rxrpc/key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/key.c b/net/rxrpc/key.c index e2d36619b53a..e7f6b8823eb6 100644 --- a/net/rxrpc/key.c +++ b/net/rxrpc/key.c @@ -536,7 +536,7 @@ static int rxrpc_preparse_xdr_rxk5(struct key_preparsed_payload *prep, pptoken = &(*pptoken)->next) continue; *pptoken = token; - expiry = rxrpc_u32_to_time64(token->kad->expiry); + expiry = rxrpc_u32_to_time64(token->k5->endtime); if (expiry < prep->expiry) prep->expiry = expiry; |