From d3c3bd0ea7056df8366b09762283723cabcac7a9 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 1 Oct 2006 12:05:20 +0000 Subject: [PATCH] kdc: make_toolong_error does not initialize all fields for krb5_mk_error network.c: make_too_long_error() fails to set the ctime and cusec elements of the krb5_error structure. Valgrind detects errors in the asn.1 encoding handlers in reading an unitialized value. Initialize to 0. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18635 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/network.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kdc/network.c b/src/kdc/network.c index 42c487a2c..3cb4400df 100644 --- a/src/kdc/network.c +++ b/src/kdc/network.c @@ -904,6 +904,8 @@ make_toolong_error (krb5_data **out) errpkt.error = KRB_ERR_FIELD_TOOLONG; errpkt.server = tgs_server; errpkt.client = NULL; + errpkt.cusec = 0; + errpkt.ctime = 0; errpkt.text.length = 0; errpkt.text.data = 0; errpkt.e_data.length = 0; -- 2.26.2