From: Pierangelo Masarati Date: Sat, 23 Mar 2002 17:39:08 +0000 (+0000) Subject: fix ITS#1662 - ber_bvstrdup() empty string () bug X-Git-Tag: OPENLDAP_REL_ENG_2_0_24~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa076be37d24a6455a076bdc7863fff8ec6f960d;p=thirdparty%2Fopenldap.git fix ITS#1662 - ber_bvstrdup() empty string () bug --- diff --git a/CHANGES b/CHANGES index 722236ab9c..6bff9e37ce 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,5 @@ OpenLDAP 2.0 Change Log + Fixed ber_bvstrdup() empty string ("") bug (ITS#1662) OpenLDAP 2.0.23 Release Fixed slapd moddn acl bug (ITS#1562) (ITS#1582) diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index 799e85d293..95695affca 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -529,7 +529,7 @@ ber_bvstrdup( new = ber_bvstr( p ); - if( new == NULL || *p == '\0' ) { + if( new == NULL ) { LBER_FREE( p ); }