From 6a92f6be0f9a32633bee9d5eed488091bc34bddd Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Thu, 14 Sep 1995 21:39:03 +0000 Subject: [PATCH] * krb524d.c (usage): needs to get context to pass to cleanup_and_exit so it does get freed, since it is allocated before parsing arguments. (main): change caller as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6789 dc483132-0cff-0310-8789-dd5450dbe970 --- src/krb524/ChangeLog | 6 +++++- src/krb524/krb524d.c | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index e5c3a90fd..b361dff33 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,5 +1,9 @@ +Thu Sep 14 17:36:11 1995 Mark Eichin - + * krb524d.c (usage): needs to get context to pass to + cleanup_and_exit so it does get freed, since it is allocated + before parsing arguments. + (main): change caller as well. Wed Sep 06 14:20:57 1995 Chris Provenzano (proven@mit.edu) diff --git a/src/krb524/krb524d.c b/src/krb524/krb524d.c index 86265cd09..889a11b81 100644 --- a/src/krb524/krb524d.c +++ b/src/krb524/krb524d.c @@ -60,10 +60,11 @@ krb5_keyblock master_keyblock; void init_keytab(), init_master(), cleanup_and_exit(); krb5_error_code do_connection(), lookup_service_key(), kdc_get_server_key(); -void usage() +void usage(context) + krb5_context context; { fprintf(stderr, "Usage: %s [-m[aster]] [-k[eytab]]\n", whoami); - cleanup_and_exit(1, NULL); + cleanup_and_exit(1, context); } RETSIGTYPE request_exit(signo) @@ -110,7 +111,7 @@ int main(argc, argv) } if (argc || use_keytab + use_master > 1 || use_keytab + use_master == 0) - usage(); + usage(context); signal(SIGINT, request_exit); signal(SIGHUP, request_exit); -- 2.26.2