[SSSD] [PATCH] Fix uninitialized variable
Jakub Hrozek
jhrozek at redhat.com
Fri Mar 16 13:39:33 UTC 2012
This resulted in using uninitialized variables with missing attributes
unless the caller explicitly assigned NULL prior to calling
list_missing_attrs.
-------------- next part --------------
>From b9c6f446ce7b424a2fbe474eca68dd2950431256 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Fri, 16 Mar 2012 09:36:38 -0400
Subject: [PATCH] Fix uninitialized variable
---
src/providers/ldap/ldap_common.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
index 22d375539b030aa87e886d5af3146e6d7d694511..a8bf7163a985cc8aadfc747df9532ba924d3e077 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -1645,7 +1645,7 @@ errno_t list_missing_attrs(TALLOC_CTX *mem_ctx,
}
if (k == 0) {
- *missing = NULL;
+ *missing_attrs = NULL;
} else {
/* Terminate the list */
missing[k] = NULL;
--
1.7.7.6
More information about the sssd-devel
mailing list