From a49fa9e1f24daa3390d0813193a6cce42f8c0835 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sep 24 2008 15:26:28 +0000 Subject: Merge branch 'master' of ssh://simo@git.fedorahosted.org/git/freeipa into ipa-1-2 --- diff --git a/ipa-client/ipa-getkeytab.c b/ipa-client/ipa-getkeytab.c index f153094..fbeb547 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"); }