From 0468a1294476e8099d226a2f8e613087e9d9840d Mon Sep 17 00:00:00 2001 From: Chris Provenzano Date: Thu, 4 May 1995 00:11:40 +0000 Subject: [PATCH] * krcp.c (answer_auth()): Set auth_context = NULL before using it git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5713 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 5 +++++ src/appl/bsd/krcp.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 38c36b841..56ab441ad 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ + +Wed May 03 20:10:39 1995 Chris Provenzano (proven@mit.edu) + + * krcp.c (answer_auth()): Set auth_context = NULL before using it. + Wed May 03 03:30:51 1995 Chris Provenzano (proven@mit.edu) * krlogind.c, krshd.c: (krb5_compat_recvauth()): diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index ef0da9083..8a72a3d4e 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -1310,7 +1310,7 @@ void krb5_creds creds, *new_creds; krb5_ccache cc; krb5_error_code status; - krb5_auth_context *auth_context; + krb5_auth_context *auth_context = NULL; extern krb5_flags krb5_kdc_default_options; @@ -1353,8 +1353,8 @@ void krb5_cc_destroy(bsd_context, cc); exit(1); } - krb5_cc_destroy(bsd_context, cc); status = krb5_write_message(bsd_context, (krb5_pointer) &rem, &msg); + krb5_cc_destroy(bsd_context, cc); krb5_xfree(msg.data); if (status){ exit(1); -- 2.26.2