From 70e7d3a41abfc55b7d763db0a3e3176a801f428a Mon Sep 17 00:00:00 2001 From: Paul Park Date: Tue, 8 Aug 1995 21:59:35 +0000 Subject: [PATCH] Make sure unfilled data in krb5_key_data is zero in decode_princ_contents git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6460 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/kdb_xdr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/kdb/kdb_xdr.c b/src/lib/kdb/kdb_xdr.c index 8aadb2b96..ede37bf95 100644 --- a/src/lib/kdb/kdb_xdr.c +++ b/src/lib/kdb/kdb_xdr.c @@ -530,6 +530,7 @@ krb5_decode_princ_contents(context, content, entry) goto error_out; } key_data = entry->key_data + i; + memset(key_data, 0, sizeof(krb5_key_data)); krb5_kdb_decode_int16(nextloc, key_data->key_data_ver); nextloc += 2; krb5_kdb_decode_int16(nextloc, key_data->key_data_kvno); -- 2.26.2