* krb524d.c (usage): needs to get context to pass to
authorMark Eichin <eichin@mit.edu>
Thu, 14 Sep 1995 21:39:03 +0000 (21:39 +0000)
committerMark Eichin <eichin@mit.edu>
Thu, 14 Sep 1995 21:39:03 +0000 (21:39 +0000)
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
src/krb524/krb524d.c

index e5c3a90fd1384227f00069dddfe92aa16eed681a..b361dff33d77d9c1ab5851dc6eb438c6137a809d 100644 (file)
@@ -1,5 +1,9 @@
+Thu Sep 14 17:36:11 1995  Mark Eichin  <eichin@cygnus.com>
 
-
+       * 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)
 
index 86265cd09ce52af7114fa4c4b04b13ca22d7cafb..889a11b811aa09701d0735f3ee36c1199362a973 100644 (file)
@@ -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);