summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-06-12 16:59:32 -0400
committerSimo Sorce <ssorce@redhat.com>2008-09-10 15:43:40 -0400
commitb39181f18a518b0305b8f332da6633cbecb6e7df (patch)
treedc88158e5968d73fbb84239b2e8fbb26a608a9c7
parente9b96cdabbbc1855fd38f5426d5e07d9284599dc (diff)
downloadfreeipa-b39181f18a518b0305b8f332da6633cbecb6e7df.tar.gz
freeipa-b39181f18a518b0305b8f332da6633cbecb6e7df.tar.xz
freeipa-b39181f18a518b0305b8f332da6633cbecb6e7df.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 8c95c35f..c68ed4eb 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;