From 4d8a255c062d943695ae35c467ec8f2b0f7fa4b7 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 24 Sep 2008 17:50:56 -0400 Subject: Fix segfault in ipa-getkeytab 463548 --- ipa-client/ipa-getkeytab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipa-client/ipa-getkeytab.c') diff --git a/ipa-client/ipa-getkeytab.c b/ipa-client/ipa-getkeytab.c index f153094d8..fbeb547a8 100644 --- a/ipa-client/ipa-getkeytab.c +++ b/ipa-client/ipa-getkeytab.c @@ -756,7 +756,7 @@ int main(int argc, char *argv[]) if (!password) { exit(2); } - } else if (strchr(enctypes_string, ':')) { + } else if (enctypes_string && strchr(enctypes_string, ':')) { if (!quiet) { fprintf(stderr, "Warning: salt types are not honored with randomized passwords (see opt. -P)\n"); } -- cgit