1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Make use of talloc_tos()

This commit is contained in:
Volker Lendecke 2008-10-10 23:40:50 +02:00
parent 200b0deaef
commit f0a2706486

View File

@ -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;
}