1
0
forked from pool/openldap2
OBS User unknown 2007-05-03 22:39:22 +00:00 committed by Git OBS Bridge
parent aa656af709
commit e3911195a1
5 changed files with 31 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 2 14:05:05 CEST 2007 - dmueller@suse.de
- Fix comparison with string literal
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 18 15:16:43 CEST 2007 - schwab@suse.de Wed Apr 18 15:16:43 CEST 2007 - schwab@suse.de

View File

@ -28,7 +28,7 @@ Summary: OpenLDAP2 Client Utilities
%endif %endif
Autoreqprov: on Autoreqprov: on
Version: 2.3.34 Version: 2.3.34
Release: 10 Release: 15
Source: openldap-%{version}.tar.bz2 Source: openldap-%{version}.tar.bz2
Source1: openldap-rc.tgz Source1: openldap-rc.tgz
Source2: openldap-admin-guide.tar.bz2 Source2: openldap-admin-guide.tar.bz2
@ -45,6 +45,7 @@ Patch6: libldap-gethostbyname_r.dif
Patch7: pie-compile.dif Patch7: pie-compile.dif
Patch8: libldap-manpages.dif Patch8: libldap-manpages.dif
Patch9: slapd_chain_return_error.dif Patch9: slapd_chain_return_error.dif
Patch10: string-compare.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix} Prefix: %{_prefix}
@ -123,6 +124,7 @@ Authors:
%endif %endif
%patch8 -p1 %patch8 -p1
%patch9 -p1 %patch9 -p1
%patch10
%build %build
%{?suse_update_config:%{suse_update_config -f build}} %{?suse_update_config:%{suse_update_config -f build}}
@ -343,6 +345,8 @@ fi
%endif %endif
%changelog %changelog
* Wed May 02 2007 - dmueller@suse.de
- Fix comparison with string literal
* Wed Apr 18 2007 - schwab@suse.de * Wed Apr 18 2007 - schwab@suse.de
- Fix generation of debuginfo packages. - Fix generation of debuginfo packages.
* Tue Mar 20 2007 - rguenther@suse.de * Tue Mar 20 2007 - rguenther@suse.de

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 2 14:05:05 CEST 2007 - dmueller@suse.de
- Fix comparison with string literal
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 18 15:16:43 CEST 2007 - schwab@suse.de Wed Apr 18 15:16:43 CEST 2007 - schwab@suse.de

View File

@ -28,7 +28,7 @@ Summary: The New OpenLDAP Server (LDAPv3)
%endif %endif
Autoreqprov: on Autoreqprov: on
Version: 2.3.34 Version: 2.3.34
Release: 10 Release: 15
Source: openldap-%{version}.tar.bz2 Source: openldap-%{version}.tar.bz2
Source1: openldap-rc.tgz Source1: openldap-rc.tgz
Source2: openldap-admin-guide.tar.bz2 Source2: openldap-admin-guide.tar.bz2
@ -45,6 +45,7 @@ Patch6: libldap-gethostbyname_r.dif
Patch7: pie-compile.dif Patch7: pie-compile.dif
Patch8: libldap-manpages.dif Patch8: libldap-manpages.dif
Patch9: slapd_chain_return_error.dif Patch9: slapd_chain_return_error.dif
Patch10: string-compare.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: %{_prefix} Prefix: %{_prefix}
@ -126,6 +127,7 @@ Authors:
%endif %endif
%patch8 -p1 %patch8 -p1
%patch9 -p1 %patch9 -p1
%patch10
%build %build
%{?suse_update_config:%{suse_update_config -f build}} %{?suse_update_config:%{suse_update_config -f build}}
@ -346,6 +348,8 @@ fi
%endif %endif
%changelog %changelog
* Wed May 02 2007 - dmueller@suse.de
- Fix comparison with string literal
* Wed Apr 18 2007 - schwab@suse.de * Wed Apr 18 2007 - schwab@suse.de
- Fix generation of debuginfo packages. - Fix generation of debuginfo packages.
* Tue Mar 20 2007 - rguenther@suse.de * Tue Mar 20 2007 - rguenther@suse.de

11
string-compare.diff Normal file
View File

@ -0,0 +1,11 @@
--- servers/slapd/overlays/ppolicy.c
+++ servers/slapd/overlays/ppolicy.c
@@ -848,7 +848,7 @@ ctrls_cleanup( Operation *op, SlapReply
assert( rs->sr_ctrls[0] != NULL );
for ( n = 0; rs->sr_ctrls[n]; n++ ) {
- if ( rs->sr_ctrls[n]->ldctl_oid == LDAP_CONTROL_PASSWORDPOLICYRESPONSE ) {
+ if ( !strcmp(rs->sr_ctrls[n]->ldctl_oid, LDAP_CONTROL_PASSWORDPOLICYRESPONSE) ) {
ch_free( rs->sr_ctrls[n]->ldctl_value.bv_val );
ch_free( rs->sr_ctrls[n] );
rs->sr_ctrls[n] = (LDAPControl *)(-1);