From d0c101b4cd57a0a4dc10cd79993fa1cb4e2b92df Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 5 Jan 1998 21:34:35 +0000 Subject: [PATCH] some cleanup git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4272 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/get_cred.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/krb5/get_cred.c b/lib/krb5/get_cred.c index bf1974426..f3ffaa92a 100644 --- a/lib/krb5/get_cred.c +++ b/lib/krb5/get_cred.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997 Kungliga Tekniska Högskolan + * Copyright (c) 1997, 1998 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -148,14 +148,10 @@ init_tgs_req (krb5_context context, if (ret) goto fail; - if(in_creds->times.endtime){ - ALLOC(t->req_body.till, 1); - *t->req_body.till = in_creds->times.endtime; - } else { - /* this is necessary with old MIT code (such as DCE secd) */ - ALLOC(t->req_body.till, 1); - *t->req_body.till = 0; - } + /* req_body.till should be NULL if there is no endtime specified, + but old MIT code (like DCE secd) doesn't like that */ + ALLOC(t->req_body.till, 1); + *t->req_body.till = in_creds->times.endtime; t->req_body.nonce = nonce; if(second_ticket){