summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-getkeytab.c
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-09-24 17:50:56 -0400
committerRob Crittenden <rcritten@redhat.com>2008-09-24 18:04:28 -0400
commit4d8a255c062d943695ae35c467ec8f2b0f7fa4b7 (patch)
treebe5ebe62b5ac255e3ca5758a14c177c83df6b235 /ipa-client/ipa-getkeytab.c
parent7b799d8c6f5a740be3e2433d03cfc4d41b496ef6 (diff)
downloadfreeipa-4d8a255c062d943695ae35c467ec8f2b0f7fa4b7.tar.gz
freeipa-4d8a255c062d943695ae35c467ec8f2b0f7fa4b7.tar.xz
freeipa-4d8a255c062d943695ae35c467ec8f2b0f7fa4b7.zip
Fix segfault in ipa-getkeytab
463548
Diffstat (limited to 'ipa-client/ipa-getkeytab.c')
-rw-r--r--ipa-client/ipa-getkeytab.c2
1 files changed, 1 insertions, 1 deletions
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");
}