From 1c69a2ab2b950c95e552b1b4c7ad484541df7fe9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 6 Aug 2002 02:35:51 +0000 Subject: [PATCH] ITS#1998 ber_mem2bv should accept 0-length calls, just like ber_strdup. --- libraries/liblber/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5