summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/map_username.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/map_username.c b/source3/smbd/map_username.c
index 38473e0736..47aa54d2ba 100644
--- a/source3/smbd/map_username.c
+++ b/source3/smbd/map_username.c
@@ -117,7 +117,7 @@ bool map_username(struct smbd_server_connection *sconn, fstring user)
}
numlines = 0;
- qlines = fd_lines_load(fd, &numlines,0, NULL);
+ qlines = fd_lines_load(fd, &numlines, 0, talloc_tos());
DEBUGADD(10,("Lines returned = [%d]\n", numlines));
close(fd);