From: Volker Lendecke Date: Fri, 26 Feb 2010 16:53:34 +0000 (+0100) Subject: s3: Use talloc_tos() in yield_connection() X-Git-Tag: samba-3.6.0pre1~4912 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2238260aa3f85cdb0057dae437f454c8c54d08f7;p=thirdparty%2Fsamba.git s3: Use talloc_tos() in yield_connection() --- diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index 34903bbc274..a54dc8d7979 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; }