]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/ch_malloc.c
ITS#4634
[openldap] / servers / slapd / ch_malloc.c
index 2b698fa1779ae7abb5067fee2cde715bdc742e1a..4df7720697546f05a78f98e8913fa73708cbc618 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -75,6 +75,7 @@ ch_realloc(
 
        if( size == 0 ) {
                ch_free( block );
+               return NULL;
        }
 
        ctx = slap_sl_context( block );