summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib/krb5/rd_priv.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-03-22 10:16:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:02 -0500
commit864d9b531dc2fba94f5ea839b087e28d402c643a (patch)
tree91f72ed27956be3c0d536d725b0505cba35e3adb /source4/heimdal/lib/krb5/rd_priv.c
parent4fd82be1403f873f67eecb8fee457b8de9fc5cd1 (diff)
downloadsamba-864d9b531dc2fba94f5ea839b087e28d402c643a.tar.gz
samba-864d9b531dc2fba94f5ea839b087e28d402c643a.tar.bz2
samba-864d9b531dc2fba94f5ea839b087e28d402c643a.zip
r14635: - Remove lex.c from SVN (it is built anyway, and having it in SVN
confuses things) - Update Samba4 from lorikeet-heimdal - Remove generated symlink on make clean Andrew Bartlett (This used to be commit a5c2b4cc92e807d18cb8df99bebf004fa4252e1e)
Diffstat (limited to 'source4/heimdal/lib/krb5/rd_priv.c')
-rw-r--r--source4/heimdal/lib/krb5/rd_priv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/heimdal/lib/krb5/rd_priv.c b/source4/heimdal/lib/krb5/rd_priv.c
index bafd23e995..bf82ad556e 100644
--- a/source4/heimdal/lib/krb5/rd_priv.c
+++ b/source4/heimdal/lib/krb5/rd_priv.c
@@ -33,7 +33,7 @@
#include <krb5_locl.h>
-RCSID("$Id: rd_priv.c,v 1.31 2004/05/25 21:39:13 lha Exp $");
+RCSID("$Id: rd_priv.c,v 1.32 2006/03/18 22:15:57 lha Exp $");
krb5_error_code KRB5_LIB_FUNCTION
krb5_rd_priv(krb5_context context,
@@ -50,6 +50,9 @@ krb5_rd_priv(krb5_context context,
krb5_keyblock *key;
krb5_crypto crypto;
+ if (outdata)
+ krb5_data_zero(outdata);
+
if ((auth_context->flags &
(KRB5_AUTH_CONTEXT_RET_TIME | KRB5_AUTH_CONTEXT_RET_SEQUENCE)) &&
outdata == NULL)
@@ -158,7 +161,7 @@ krb5_rd_priv(krb5_context context,
(KRB5_AUTH_CONTEXT_RET_TIME | KRB5_AUTH_CONTEXT_RET_SEQUENCE))) {
/* if these fields are not present in the priv-part, silently
return zero */
- memset(outdata, 0, sizeof(*outdata));
+ krb5_data_zero(outdata);
if(part.timestamp)
outdata->timestamp = *part.timestamp;
if(part.usec)