From: Howard Chu Date: Tue, 6 Aug 2002 02:35:51 +0000 (+0000) Subject: ITS#1998 ber_mem2bv should accept 0-length calls, just like ber_strdup. X-Git-Tag: NO_SLAP_OP_BLOCKS~1279 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1c69a2ab2b950c95e552b1b4c7ad484541df7fe9;p=openldap ITS#1998 ber_mem2bv should accept 0-length calls, just like ber_strdup. --- diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index 599a542988..73b338e3b5 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -531,7 +531,7 @@ ber_mem2bv( ber_int_options.lbo_valid = LBER_INITIALIZED; - if( s == NULL || len == 0 ) { + if( s == NULL ) { ber_errno = LBER_ERROR_PARAM; return NULL; }