ITS#1998 ber_mem2bv should accept 0-length calls, just like ber_strdup.

This commit is contained in:
Howard Chu 2002-08-06 02:35:51 +00:00
parent 61731500d0
commit 1c69a2ab2b

View file

@ -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;
}