(generate_requests): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9436 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -79,7 +79,9 @@ generate_requests (const char *filename, unsigned nreq)
|
|||||||
char **words;
|
char **words;
|
||||||
unsigned nwords;
|
unsigned nwords;
|
||||||
|
|
||||||
krb5_init_context (&context);
|
ret = krb5_init_context (&context);
|
||||||
|
if (ret)
|
||||||
|
errx (1, "krb5_init_context failed: %d", ret);
|
||||||
|
|
||||||
nwords = read_words (filename, &words);
|
nwords = read_words (filename, &words);
|
||||||
|
|
||||||
|
@@ -80,7 +80,9 @@ generate_requests (const char *filename, unsigned nreq)
|
|||||||
char **words;
|
char **words;
|
||||||
unsigned nwords;
|
unsigned nwords;
|
||||||
|
|
||||||
krb5_init_context (&context);
|
ret = krb5_init_context (&context);
|
||||||
|
if (ret)
|
||||||
|
errx (1, "krb5_init_context failed: %d", ret);
|
||||||
|
|
||||||
nwords = read_words (filename, &words);
|
nwords = read_words (filename, &words);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user