From be2cb85562504ae7d906ed8325c93ad68e804b6c Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 1 Dec 1995 22:14:52 +0000 Subject: [PATCH] Initialize rcache to zero, so that on cleanup we don't try to free stack garbage. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7149 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/recvauth.c | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 3092f3ae4..2916a22af 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 1 17:04:43 1995 Theodore Y. Ts'o + + * recvauth.c (krb5_recvauth): Initialize rcache to zero, so that + on cleanup we don't try to free stack garbage. + Sun Nov 26 19:31:18 1995 Tom Yu * preauth.c: Ultrix is broken. Prototype obtain_enc_ts_padata() diff --git a/src/lib/krb5/krb/recvauth.c b/src/lib/krb5/krb/recvauth.c index 3390d044c..d88c20cb5 100644 --- a/src/lib/krb5/krb/recvauth.c +++ b/src/lib/krb5/krb/recvauth.c @@ -56,7 +56,7 @@ krb5_recvauth(context, auth_context, krb5_error_code retval, problem; krb5_data inbuf; krb5_data outbuf; - krb5_rcache rcache; + krb5_rcache rcache = 0; krb5_octet response; krb5_data null_server; @@ -177,10 +177,6 @@ krb5_recvauth(context, auth_context, krb5_us_timeofday(context, &error.stime, &error.susec); error.server = server; - - - - error.error = problem - ERROR_TABLE_BASE_krb5; if (error.error > 127) error.error = KRB_ERR_GENERIC; -- 2.26.2