X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fch_malloc.c;h=70312bd4e228a887ea60b17bf6c5bc3e97fbc371;hb=ef7f5f5e32e6e0f129aee7fa1626017a7dadcb48;hp=2b698fa1779ae7abb5067fee2cde715bdc742e1a;hpb=dc0eacd40b625258355eea866d62188e5aa7ce3b;p=openldap diff --git a/servers/slapd/ch_malloc.c b/servers/slapd/ch_malloc.c index 2b698fa177..70312bd4e2 100644 --- a/servers/slapd/ch_malloc.c +++ b/servers/slapd/ch_malloc.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2005 The OpenLDAP Foundation. + * Copyright 1998-2011 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 );