From e33427c7b4b006b206719bc9256c55d20860d1ec Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 30 Dec 2002 19:49:21 +0000 Subject: [PATCH] * kerberos_v4.c (process_v4): Use a temporary variable for the current time instead of an incorrect pointer cast. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15072 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 5 +++++ src/kdc/kerberos_v4.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index aa5d3446e..4f771c656 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +2002-12-30 Ken Raeburn + + * kerberos_v4.c (process_v4): Use a temporary variable for the + current time instead of an incorrect pointer cast. + 2002-12-12 Tom Yu * kerberos_v4.c (kerberos_v4): Use krb_get_err_text() instead of diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index a27f95a7c..fa43989a5 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -212,6 +212,7 @@ process_v4(const krb5_data *pkt, const krb5_fulladdr *client_fulladdr, struct sockaddr_in client_sockaddr; krb5_address *addr = client_fulladdr->address; krb5_error_code retval; + krb5_timestamp now; KTEXT_ST v4_pkt; char *lrealm; @@ -221,8 +222,10 @@ process_v4(const krb5_data *pkt, const krb5_fulladdr *client_fulladdr, return KRB5KDC_ERR_BAD_PVNO; } - if ((retval = krb5_timeofday(kdc_context, (krb5_timestamp *) &kerb_time.tv_sec))) + + if ((retval = krb5_timeofday(kdc_context, &now))) return(retval); + kerb_time.tv_sec = now; if (!*local_realm) { /* local-realm name already set up */ lrealm = master_princ->realm.data; -- 2.26.2