(main): check number of arguments

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3421 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-09-07 23:34:53 +00:00
parent c522f6cc39
commit e624e0c3a4
5 changed files with 25 additions and 0 deletions

View File

@@ -91,6 +91,9 @@ main (int argc, char **argv)
argc -= optind;
argv += optind;
if (argc > 1)
usage(1);
ret = krb5_init_context (&context);
if (ret)
errx (1, "krb5_init_context: %s", krb5_get_err_text(context, ret));