Hello community, here is the log from the commit of package openldap2 checked in at Fri May 4 00:39:20 CEST 2007. -------- --- openldap2/openldap2.changes 2007-04-18 15:16:53.000000000 +0200 +++ /mounts/work_src_done/STABLE/openldap2/openldap2.changes 2007-05-02 14:05:16.000000000 +0200 @@ -1,0 +2,5 @@ +Wed May 2 14:05:05 CEST 2007 - dmueller@suse.de + +- Fix comparison with string literal + +------------------------------------------------------------------- openldap2-client.changes: same change New: ---- string-compare.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openldap2-client.spec ++++++ --- /var/tmp/diff_new_pack.B31025/_old 2007-05-04 00:39:07.000000000 +0200 +++ /var/tmp/diff_new_pack.B31025/_new 2007-05-04 00:39:07.000000000 +0200 @@ -28,7 +28,7 @@ %endif Autoreqprov: on Version: 2.3.34 -Release: 10 +Release: 15 Source: openldap-%{version}.tar.bz2 Source1: openldap-rc.tgz Source2: openldap-admin-guide.tar.bz2 @@ -45,6 +45,7 @@ Patch7: pie-compile.dif Patch8: libldap-manpages.dif Patch9: slapd_chain_return_error.dif +Patch10: string-compare.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: %{_prefix} @@ -123,6 +124,7 @@ %endif %patch8 -p1 %patch9 -p1 +%patch10 %build %{?suse_update_config:%{suse_update_config -f build}} @@ -343,6 +345,8 @@ %endif %changelog +* Wed May 02 2007 - dmueller@suse.de +- Fix comparison with string literal * Wed Apr 18 2007 - schwab@suse.de - Fix generation of debuginfo packages. * Tue Mar 20 2007 - rguenther@suse.de openldap2.spec: same change ++++++ string-compare.diff ++++++ --- 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); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de