don't forget to initialize the kdc_offset (it was random before)

This commit is contained in:
christos 2018-04-06 19:56:43 +00:00
parent 2f405e0803
commit 2e9ba29a65
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cache.c,v 1.3 2017/01/28 21:31:44 christos Exp $ */
/* $NetBSD: cache.c,v 1.4 2018/04/06 19:56:43 christos Exp $ */
/*
* Copyright (c) 2005, PADL Software Pty Ltd.
@ -324,6 +324,7 @@ kcm_ccache_alloc(krb5_context context,
slot->key.keytab = NULL;
slot->tkt_life = 0;
slot->renew_life = 0;
slot->kdc_offset = 0;
if (new_slot)
ccache_head = slot;