Fix uninitialized value bug causing crashes throughout the code

- Resolves: rhbz#804783 - [abrt] Segfault during LDAP 'services' lookup
This commit is contained in:
Stephen Gallagher 2012-03-21 07:35:03 -04:00
parent 8c71823719
commit af80d0ea8a
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From b3671769f57521c4eeef850a4963e320f170082c Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@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 d5dc4a0af5590bbe6f8d474095c6094582deb542..949244183c0db7b8e576c7b3c5e63e2bb35cb39f 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -1598,7 +1598,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

View File

@ -16,7 +16,7 @@
Name: sssd
Version: 1.8.1
Release: 7%{?dist}
Release: 8%{?dist}
Group: Applications/System
Summary: System Security Services Daemon
License: GPLv3+
@ -26,6 +26,8 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
### Patches ###
Patch0001: 0001-Fix-uninitialized-variable.patch
Patch1001: FED01-Change-Kerberos-credential-cache-default-loca.patch
### Dependencies ###
@ -440,6 +442,10 @@ fi
%postun -n libipa_hbac -p /sbin/ldconfig
%changelog
* Wed Mar 21 2012 Stephen Gallagher <sgallagh@redhat.com> - 1.8.1-8
- Fix uninitialized value bug causing crashes throughout the code
- Resolves: rhbz#804783 - [abrt] Segfault during LDAP 'services' lookup
* Mon Mar 12 2012 Stephen Gallagher <sgallagh@redhat.com> - 1.8.1-7
- New upstream release 1.8.1
- Resolve issue where we could enter an infinite loop trying to connect to an