summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-28 10:34:37 +0100
committerVolker Lendecke <vl@samba.org>2008-03-28 14:12:34 +0100
commitbfb001526f00c93562bc5b114934c054d74b21ef (patch)
tree54a066595e3ddefe782709e1685b8559aca7429f
parent2aa7dc8bc6a9ffcb8ee6e205575960678b9ea460 (diff)
downloadsamba-bfb001526f00c93562bc5b114934c054d74b21ef.tar.gz
samba-bfb001526f00c93562bc5b114934c054d74b21ef.tar.bz2
samba-bfb001526f00c93562bc5b114934c054d74b21ef.zip
Fix a segfault
(This used to be commit 40d1d64c6a2ae128eb3fce0e7f5351b0c5942f30)
-rw-r--r--source3/groupdb/mapping_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index 9f2b250cca..d4ee523405 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -130,7 +130,7 @@ static bool add_mapping_entry(GROUP_MAP *map, int flag)
return NULL;
}
- len = tdb_pack(NULL, sizeof(buf), "ddff",
+ len = tdb_pack(NULL, 0, "ddff",
map->gid, map->sid_name_use, map->nt_name, map->comment);
buf = TALLOC_ARRAY(key, char, len);