summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-06-18 14:06:57 +0200
committerAndrew Bartlett <abartlet@samba.org>2015-06-24 01:03:16 +0200
commit3269ebfcbfefb2bf41c92eca270ea5feefdb9d05 (patch)
treeb45aa3f731263148b27d4b10e8ef1b0004bafc1f
parent01350c76ade6962f7974513afd81632494a8efaa (diff)
downloadsamba-3269ebfcbfefb2bf41c92eca270ea5feefdb9d05.tar.gz
heimdal:lib/gssapi/krb5: clear temporary buffer with cleartext data.
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/heimdal/lib/gssapi/krb5/arcfour.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/heimdal/lib/gssapi/krb5/arcfour.c b/source4/heimdal/lib/gssapi/krb5/arcfour.c
index f5e41e4056f..5cd1fe3b9f3 100644
--- a/source4/heimdal/lib/gssapi/krb5/arcfour.c
+++ b/source4/heimdal/lib/gssapi/krb5/arcfour.c
@@ -149,6 +149,7 @@ arcfour_mic_cksum(krb5_context context,
0,
ptr, len,
&CKSUM);
+ memset(ptr, 0, len);
free(ptr);
if (ret == 0) {
memcpy(sgn_cksum, CKSUM.checksum.data, sgn_cksum_sz);