+Thu Apr 20 13:06:53 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * kdc_hammer.c (usage()): Removed -M as not used.
+ (main()): Add missing option to getopt call.
+ On exit, close the ccache, free context, and exit
+ with status set to number of errors encountered.
Mon Mar 27 07:56:26 1995 Chris Provenzano (proven@mit.edu)
fprintf(stderr,
"usage: %s -p prefix -n num_to_check [-d dbpathname] [-r realmname]\n",
who);
- fprintf(stderr, "\t [-D depth] [-k keytype] [-e etype] [-M mkeyname]\n");
+ fprintf(stderr, "\t [-D depth] [-k keytype] [-e etype]\n");
fprintf(stderr, "\t [-P preauth type] [-R repeat_count]\n");
exit(status);
errors = 0;
keytypedone = 0;
- while ((option = getopt(argc, argv, "D:p:n:c:R:k:P:e:bv")) != EOF) {
+ while ((option = getopt(argc, argv, "D:p:n:c:R:k:P:e:bvr:")) != EOF) {
switch (option) {
case 'b':
brief = 1;
}
}
fprintf (stderr, "\nTried %d. Got %d errors.\n", n_tried, errors);
+
+ (void) krb5_cc_close(test_context, ccache);
+
+ krb5_free_context(test_context);
+
+ exit(errors);
}
p_num, c_depth, s_depth);
else
fprintf(stderr, "\tclient %s for server %s\n", p_client_str,
- hostname);
+ service);
/* Initialize variables */
memset((char *)&creds, 0, sizeof(creds));
cleanup_rdata:
krb5_xfree(request_data.data);
+ krb5_free_cred_contents(context, credsp);
+
return retval;
}