s3:idmap_autorid: fix freeing of non-talloced memory (uninitialized pointer) (bug...
authorMichael Adam <obnox@samba.org>
Mon, 11 Feb 2013 21:52:55 +0000 (22:52 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 13 Feb 2013 08:51:53 +0000 (09:51 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Feb 13 09:51:53 CET 2013 on sn-devel-104

source3/winbindd/idmap_autorid.c

index b7b168970bbaa3651c57e7beba9821a5158ee722..07479168c71530c811f76fa3031f5f2307f2faee 100644 (file)
@@ -244,7 +244,7 @@ static NTSTATUS idmap_autorid_id_to_sid(struct autorid_global_config *cfg,
                                        struct id_map *map)
 {
        uint32_t range;
-       TDB_DATA data;
+       TDB_DATA data = tdb_null;
        char *keystr;
        struct dom_sid sid;
        NTSTATUS status;