[openldap/f15/master] fix: possible null pointer dereference in NSS implementation
jvcelak
jvcelak at fedoraproject.org
Fri Mar 18 22:44:18 UTC 2011
commit 29378b6cbff4fa230b804c2ecaa5daa07105bee1
Author: Jan Vcelak <jvcelak at redhat.com>
Date: Fri Mar 18 20:09:39 2011 +0100
fix: possible null pointer dereference in NSS implementation
Resolves: #684035 (RHEL)
openldap-nss-null-pointer.patch | 25 +++++++++++++++++++++++++
openldap.spec | 2 ++
series | 1 +
3 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/openldap-nss-null-pointer.patch b/openldap-nss-null-pointer.patch
new file mode 100644
index 0000000..7a7ec62
--- /dev/null
+++ b/openldap-nss-null-pointer.patch
@@ -0,0 +1,25 @@
+fix: Possible null pointer dereference introduced when adding NSS full non-blocking semantics
+
+Resolves: #684035 (RHEL)
+Upstream ITS: #6863
+
+--- openldap-2.4.24.orig/libraries/libldap/tls_m.c
++++ openldap-2.4.24/libraries/libldap/tls_m.c
+@@ -2272,7 +2272,7 @@
+ }
+
+ if ( p->firsttag == LBER_SEQUENCE ) {
+- if ( *thebyte ) {
++ if ( thebyte ) {
+ *thebyte = p->firsttag;
+ }
+ return 1;
+@@ -2769,7 +2769,7 @@
+ struct tls_data *p;
+ p = tlsm_get_pvt_tls_data( fd );
+
+- if ( !data ) {
++ if ( p == NULL || data == NULL ) {
+ return PR_FAILURE;
+ }
+
diff --git a/openldap.spec b/openldap.spec
index 0d5fbcc..22abdea 100644
--- a/openldap.spec
+++ b/openldap.spec
@@ -29,6 +29,7 @@ Patch6: openldap-smbk5pwd-overlay.patch
Patch7: openldap-ldaprc-currentdir.patch
Patch8: openldap-userconfig-setgid.patch
Patch9: openldap-nss-nofork.patch
+Patch10: openldap-nss-null-pointer.patch
# patches for the evolution library (see README.evolution)
Patch200: openldap-evolution-ntlm.patch
@@ -130,6 +131,7 @@ pushd openldap-%{version}
%patch7 -p1 -b .ldaprc-currentdir
%patch8 -p1 -b .userconfig-setgid
%patch9 -p1 -b .nss-nofork
+%patch10 -p1 -b .nss-null-pointer
cp %{_datadir}/libtool/config/config.{sub,guess} build/
diff --git a/series b/series
index dc748f6..86e8280 100644
--- a/series
+++ b/series
@@ -8,4 +8,5 @@ openldap-smbk5pwd-overlay.patch
openldap-ldaprc-currentdir.patch
openldap-userconfig-setgid.patch
openldap-nss-nofork.patch
+openldap-nss-null-pointer.patch
openldap-evolution-ntlm.patch
More information about the scm-commits
mailing list