s3: Use talloc_tos() in yield_connection()
authorVolker Lendecke <vl@samba.org>
Fri, 26 Feb 2010 16:53:34 +0000 (17:53 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 28 Feb 2010 19:45:21 +0000 (20:45 +0100)
source3/smbd/connection.c

index 34903bbc27485d96985932cbb8fad0ee33aac954..a54dc8d79790177bb4a54d237c88b0fb31e86ae4 100644 (file)
@@ -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;
        }