without the -h option. Free the context and auth_context structures
before exiting.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6803
dc483132-0cff-0310-8789-
dd5450dbe970
+Sat Sep 16 03:45:59 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * sim_client.c (main): Fix optional host parsing so that host is
+ recognized as an argument without the -h option.
+ Free the context and auth_context structures before exiting.
+
Fri Sep 15 04:59:30 1995 Theodore Y. Ts'o <tytso@dcl>
* sim_client.c (main): Added better options parsing for more
}
argc -= optind;
argv += optind;
- if (argc > 1) {
+ if (argc > 0) {
if (hostname)
usage();
- hostname = argv[1];
+ hostname = argv[0];
}
if (hostname == 0) {
com_err(progname, errno, "while sending PRIV message");
printf("Sent encrypted message: %d bytes\n", i);
krb5_xfree(packet.data);
+
+ krb5_auth_con_free(context, auth_context);
+ krb5_free_context(context);
+
exit(0);
}