From 65b7a21d331b7f0cfbc6bd6545adde00ce2826fa Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 7 Dec 2004 18:25:53 +0000 Subject: r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. --- source/smbd/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/smbd/conn.c') diff --git a/source/smbd/conn.c b/source/smbd/conn.c index 34e19a3ca6b..6b5942f7f66 100644 --- a/source/smbd/conn.c +++ b/source/smbd/conn.c @@ -132,7 +132,7 @@ find_again: return NULL; } - if ((conn=(connection_struct *)talloc_zero(mem_ctx, sizeof(*conn)))==NULL) { + if ((conn=TALLOC_ZERO_P(mem_ctx, connection_struct))==NULL) { DEBUG(0,("talloc_zero() failed!\n")); return NULL; } -- cgit