(main): catch KRB5_CONFIG_BADFORMAT from krb5_init_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15369 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -718,7 +718,9 @@ main (int argc, char **argv) | ||||
|     setprogname (argv[0]); | ||||
|      | ||||
|     ret = krb5_init_context (&context); | ||||
|     if (ret) | ||||
|     if (ret == KRB5_CONFIG_BADFORMAT) | ||||
| 	errx (1, "krb5_init_context failed to parse configuration file"); | ||||
|     else if (ret) | ||||
| 	errx(1, "krb5_init_context failed: %d", ret); | ||||
|    | ||||
|     if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optind)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand