1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Fix a segfault

(This used to be commit 40d1d64c6a)
This commit is contained in:
Volker Lendecke 2008-03-28 10:34:37 +01:00
parent 2aa7dc8bc6
commit bfb001526f

View File

@ -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);