]> git.sur5r.net Git - openldap/commitdiff
ITS#1998 ber_mem2bv should accept 0-length calls, just like ber_strdup.
authorHoward Chu <hyc@openldap.org>
Tue, 6 Aug 2002 02:35:51 +0000 (02:35 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 6 Aug 2002 02:35:51 +0000 (02:35 +0000)
libraries/liblber/memory.c

index 599a542988ad757e9e3b342b4f1265fcaaec65e6..73b338e3b52f89f5fb16763e0d97026578bba32d 100644 (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;
        }