diff options
author | Simo Sorce <ssorce@redhat.com> | 2008-06-12 16:59:32 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2008-09-10 15:43:40 -0400 |
commit | b39181f18a518b0305b8f332da6633cbecb6e7df (patch) | |
tree | dc88158e5968d73fbb84239b2e8fbb26a608a9c7 | |
parent | e9b96cdabbbc1855fd38f5426d5e07d9284599dc (diff) | |
download | freeipa-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.c | 1 |
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; |