From fa076be37d24a6455a076bdc7863fff8ec6f960d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 23 Mar 2002 17:39:08 +0000 Subject: [PATCH] fix ITS#1662 - ber_bvstrdup() empty string () bug --- CHANGES | 1 + libraries/liblber/memory.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.47.2