summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-06-12 16:59:32 -0400
committerSimo Sorce <ssorce@redhat.com>2008-06-12 19:06:30 -0400
commit24f0f632b61fbe040cb9edf278727ec8b4d66b8f (patch)
treea50dee9fd3ef39f008855fe87ca318e70f4a2c75
parent9c34dde1650c732be50a436e14601c22b1836e94 (diff)
downloadfreeipa-24f0f632b61fbe040cb9edf278727ec8b4d66b8f.tar.gz
freeipa-24f0f632b61fbe040cb9edf278727ec8b4d66b8f.tar.xz
freeipa-24f0f632b61fbe040cb9edf278727ec8b4d66b8f.zip
Fix uninizialized counter, was causing allocation to fail and command to
return in case any encryption type was explicitly requested
-rw-r--r--ipa-client/ipa-getkeytab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipa-client/ipa-getkeytab.c b/ipa-client/ipa-getkeytab.c
index 8c95c35f7..c68ed4ebb 100644
--- a/ipa-client/ipa-getkeytab.c
+++ b/ipa-client/ipa-getkeytab.c
@@ -93,6 +93,7 @@ static int get_enctypes(krb5_context krbctx, const char *str,
if (!tmp) return 0;
/* count */
+ n = 0;
p = t;
while (p = strchr(t, ',')) {
t = p+1;