diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |