From ff51fc0d0006cdd85a53db990a76596811d50446 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 12 Aug 1997 15:53:32 +0000 Subject: [PATCH] fix bug git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2952 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/build_auth.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/krb5/build_auth.c b/lib/krb5/build_auth.c index 7eacc97a7..3394a1136 100644 --- a/lib/krb5/build_auth.c +++ b/lib/krb5/build_auth.c @@ -48,7 +48,6 @@ krb5_build_authenticator (krb5_context context, Authenticator **auth_result, krb5_data *result) { - struct timeval tv; Authenticator *auth = malloc(sizeof(*auth)); char buf[1024]; size_t len; @@ -87,8 +86,8 @@ krb5_build_authenticator (krb5_context context, /* XXX - Copy more to auth_context? */ if (auth_context) { - auth_context->authenticator->cusec = tv.tv_usec; - auth_context->authenticator->ctime = tv.tv_sec; + auth_context->authenticator->ctime = auth->ctime; + auth_context->authenticator->cusec = auth->cusec; } memset (buf, 0, sizeof(buf));