summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/appl/bsd/ChangeLog5
-rw-r--r--src/appl/bsd/krcp.c4
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);