From: Ezra Peisach Date: Tue, 22 Jul 1997 00:34:54 +0000 (+0000) Subject: (krb5_gss_accept_sec_context): Initialize ctx before it is referenced without being... X-Git-Tag: krb5-1.1-beta1~1101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de8381c54ef854c016b617d36f01f61a48066ea0;p=krb5.git (krb5_gss_accept_sec_context): Initialize ctx before it is referenced without being set in failure cases git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10123 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 350515897..ad1cb04f4 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 21 20:32:14 1997 Ezra Peisach + + * accept_sec_context.c (krb5_gss_accept_sec_context): Initialize + ctx before referenced in failure cases. + Tue Jul 15 22:05:21 1997 Theodore Y. Ts'o * init_sec_context.c (krb5_gss_init_sec_context): Always copy the diff --git a/src/lib/gssapi/krb5/accept_sec_context.c b/src/lib/gssapi/krb5/accept_sec_context.c index c2dc47ed3..2d4609c48 100644 --- a/src/lib/gssapi/krb5/accept_sec_context.c +++ b/src/lib/gssapi/krb5/accept_sec_context.c @@ -161,7 +161,7 @@ krb5_gss_accept_sec_context(minor_status, context_handle, krb5_principal name = NULL; int gss_flags = 0; int decode_req_message = 0; - krb5_gss_ctx_id_rec *ctx; + krb5_gss_ctx_id_rec *ctx = 0; krb5_enctype enctype; krb5_timestamp now; gss_buffer_desc token;