From 4ee84f9b8637f917d21cd7ac60e8124a3399796d Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 27 Jun 1997 13:32:28 +0000 Subject: [PATCH] (otp_get_internal): Save lock_time in returned struct. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1929 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/otp/otp_db.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/otp/otp_db.c b/lib/otp/otp_db.c index a1567e815..ffe9f676f 100644 --- a/lib/otp/otp_db.c +++ b/lib/otp/otp_db.c @@ -121,9 +121,10 @@ otp_get_internal (void *v, OtpContext *ctx, int lockp) } p = dat.dptr; + memcpy (&then, p, sizeof(then)); + ctx->lock_time = then; if (lockp) { time(&now); - memcpy (&then, p, sizeof(then)); if (then && now - then < OTP_USER_TIMEOUT) { ctx->err = "Entry locked"; return -1;