]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#3981 from HEAD - ch_realloc(addr,0)
authorHoward Chu <hyc@openldap.org>
Wed, 28 Sep 2005 15:26:34 +0000 (15:26 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 28 Sep 2005 15:26:34 +0000 (15:26 +0000)
servers/slapd/ch_malloc.c

index 607e5d1f4706fae1b370bf0dfcd7b34abb3248ef..70fb128c86c3e2f47576de86e7f9da287c29eda7 100644 (file)
@@ -80,6 +80,7 @@ ch_realloc(
 
        if( size == 0 ) {
                ch_free( block );
+               return NULL;
        }
 
        ctx = sl_context( block );