Fix segfault in ipa-getkeytab

463548
This commit is contained in:
Rob Crittenden 2008-09-24 17:50:56 -04:00
parent 7b799d8c6f
commit 4d8a255c06

View File

@ -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");
}