From: Ken Raeburn Date: Mon, 30 Dec 2002 19:49:21 +0000 (+0000) Subject: * kerberos_v4.c (process_v4): Use a temporary variable for the current time X-Git-Tag: krb5-1.3-alpha1~202 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e33427c7b4b006b206719bc9256c55d20860d1ec;p=krb5.git * 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 --- 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;