]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
fix ITS#1662 - ber_bvstrdup() empty string () bug
authorPierangelo Masarati <ando@openldap.org>
Sat, 23 Mar 2002 17:39:08 +0000 (17:39 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 23 Mar 2002 17:39:08 +0000 (17:39 +0000)
CHANGES
libraries/liblber/memory.c

diff --git a/CHANGES b/CHANGES
index 722236ab9cd05d37a8594ee5318e039e2b2c8dd6..6bff9e37ce38fdb8c28b0f857031f7c782c29d0e 100644 (file)
--- 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)
index 799e85d29353ff2754926326bff02484055b0fea..95695affcae63b2ea126ec2b6cef7ff8aea1c616 100644 (file)
@@ -529,7 +529,7 @@ ber_bvstrdup(
 
        new = ber_bvstr( p );
 
-       if( new == NULL || *p == '\0' ) {
+       if( new == NULL ) {
                LBER_FREE( p );
        }