From 24f0f632b61fbe040cb9edf278727ec8b4d66b8f Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 12 Jun 2008 16:59:32 -0400 Subject: Fix uninizialized counter, was causing allocation to fail and command to return in case any encryption type was explicitly requested --- ipa-client/ipa-getkeytab.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ipa-client/ipa-getkeytab.c') 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; -- cgit