summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}