From eba72c85e8ebd9b7927194d7d4ad0dab559b3fb9 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Tue, 11 Jan 2011 16:19:31 +0100 Subject: Uninitialized pointer read in ipa-enrollment This patch fixes a situation where an uninitialized pointer is passed to free(). https://fedorahosted.org/freeipa/ticket/713 --- daemons/ipa-slapi-plugins/ipa-enrollment/ipa_enrollment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemons/ipa-slapi-plugins') diff --git a/daemons/ipa-slapi-plugins/ipa-enrollment/ipa_enrollment.c b/daemons/ipa-slapi-plugins/ipa-enrollment/ipa_enrollment.c index 9a5550a36..34fba02c4 100644 --- a/daemons/ipa-slapi-plugins/ipa-enrollment/ipa_enrollment.c +++ b/daemons/ipa-slapi-plugins/ipa-enrollment/ipa_enrollment.c @@ -141,7 +141,7 @@ ipa_join(Slapi_PBlock *pb) char * filter; int scope = LDAP_SCOPE_SUBTREE; - char *principal; + char *principal = NULL; struct berval retbval; /* Get Bind DN */ -- cgit