X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fch_malloc.c;h=4df7720697546f05a78f98e8913fa73708cbc618;hb=0af1940f3fb59fe57b2281ef253fe1341c505c2c;hp=7128c258318776024fc94d1b3a9048fdeaf9f979;hpb=d611a4b49a00238ed32ae84c68f27c6a0ef2273a;p=openldap diff --git a/servers/slapd/ch_malloc.c b/servers/slapd/ch_malloc.c index 7128c25831..4df7720697 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-2004 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 );