diff options
author | Volker Lendecke <vl@samba.org> | 2010-03-28 14:19:17 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-03-28 15:25:17 +0200 |
commit | d3c6f4ae17d1311f90d549bd8d7e22e802e0be1a (patch) | |
tree | 3fbc5aec0dcb47290e85f370ec3a11e53ae0ad8f | |
parent | c67e498ae863bb5f25dcb36162c473ede46400be (diff) | |
download | samba-d3c6f4ae17d1311f90d549bd8d7e22e802e0be1a.tar.gz samba-d3c6f4ae17d1311f90d549bd8d7e22e802e0be1a.tar.bz2 samba-d3c6f4ae17d1311f90d549bd8d7e22e802e0be1a.zip |
s3: Use bitmap_talloc for smb1 server tcons
-rw-r--r-- | source3/smbd/conn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c index 51f880d9df..803a775e16 100644 --- a/source3/smbd/conn.c +++ b/source3/smbd/conn.c @@ -34,7 +34,7 @@ void conn_init(struct smbd_server_connection *sconn) { sconn->smb1.tcons.Connections = NULL; sconn->smb1.tcons.num_open = 0; - sconn->smb1.tcons.bmap = bitmap_allocate(BITMAP_BLOCK_SZ); + sconn->smb1.tcons.bmap = bitmap_talloc(sconn, BITMAP_BLOCK_SZ); } /**************************************************************************** @@ -124,14 +124,14 @@ find_again: DEBUG(4,("resizing connections bitmap from %d to %d\n", oldsz, newsz)); - nbmap = bitmap_allocate(newsz); + nbmap = bitmap_talloc(sconn, newsz); if (!nbmap) { DEBUG(0,("ERROR! malloc fail.\n")); return NULL; } bitmap_copy(nbmap, sconn->smb1.tcons.bmap); - bitmap_free(sconn->smb1.tcons.bmap); + TALLOC_FREE(sconn->smb1.tcons.bmap); sconn->smb1.tcons.bmap = nbmap; find_offset = oldsz; /* Start next search in the new portion. */ |