Fix segfault in ipa-getkeytab

463548
This commit is contained in:
Rob Crittenden committed 2008-09-24 18:04:28 -04:00
1 parent 7b799d8c6f
commit 4d8a255c06
1 file changed
+1 -1
+1 -1
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");
}