From f0a27064869871806343648de3b5a0667118872f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 10 Oct 2008 23:40:50 +0200 Subject: Make use of talloc_tos() --- source3/smbd/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index 3dd8ec90ee..fd83f77725 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -274,7 +274,7 @@ bool store_pipe_opendb( smb_np_struct *p ) TDB_DATA data; bool ret = False; - if ( (prec = TALLOC_P( NULL, struct pipe_open_rec)) == NULL ) { + if ( (prec = TALLOC_P( talloc_tos(), struct pipe_open_rec)) == NULL ) { DEBUG(0,("store_pipe_opendb: talloc failed!\n")); return False; } @@ -309,7 +309,7 @@ bool delete_pipe_opendb( smb_np_struct *p ) TDB_DATA *key; bool ret = False; - if ( (prec = TALLOC_P( NULL, struct pipe_open_rec)) == NULL ) { + if ( (prec = TALLOC_P( talloc_tos(), struct pipe_open_rec)) == NULL ) { DEBUG(0,("store_pipe_opendb: talloc failed!\n")); return False; } -- cgit