summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 69c5d7534a..aa7032de16 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -121,7 +121,8 @@ bool init_dptrs(struct smbd_server_connection *sconn)
return true;
}
- sconn->smb1.searches.dptr_bmap = bitmap_allocate(MAX_DIRECTORY_HANDLES);
+ sconn->smb1.searches.dptr_bmap = bitmap_talloc(
+ sconn, MAX_DIRECTORY_HANDLES);
if (sconn->smb1.searches.dptr_bmap == NULL) {
return false;