summaryrefslogtreecommitdiff
path: root/source3/smbd/connection.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-26 17:53:34 +0100
committerVolker Lendecke <vl@samba.org>2010-02-28 20:45:21 +0100
commit2238260aa3f85cdb0057dae437f454c8c54d08f7 (patch)
treeab826b149e5c21ccd2517a432a0d2abbcab1e61e /source3/smbd/connection.c
parent5c40aa59d7d0740b2cdb0201b8d0ea7c3f9f3882 (diff)
downloadsamba-2238260aa3f85cdb0057dae437f454c8c54d08f7.tar.gz
samba-2238260aa3f85cdb0057dae437f454c8c54d08f7.tar.bz2
samba-2238260aa3f85cdb0057dae437f454c8c54d08f7.zip
s3: Use talloc_tos() in yield_connection()
Diffstat (limited to 'source3/smbd/connection.c')
-rw-r--r--source3/smbd/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c
index 34903bbc27..a54dc8d797 100644
--- a/source3/smbd/connection.c
+++ b/source3/smbd/connection.c
@@ -30,7 +30,8 @@ bool yield_connection(connection_struct *conn, const char *name)
DEBUG(3,("Yielding connection to %s\n",name));
- if (!(rec = connections_fetch_entry(NULL, conn, name))) {
+ rec = connections_fetch_entry(talloc_tos(), conn, name);
+ if (rec == NULL) {
DEBUG(0, ("connections_fetch_entry failed\n"));
return False;
}