r22214: Fix incompatible pointer type warnings. Simo, please check and merge to 3_0_25
authorVolker Lendecke <vlendec@samba.org>
Sat, 14 Apr 2007 06:44:30 +0000 (06:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:20 +0000 (12:19 -0500)
if appropriate.

Volker

source/nsswitch/idmap.c

index 3a3c2bf05f233ea8ef3cad8ceccc84ed0a4fb0ef..dac1eb0521ee982760b848537da5270518ce10c2 100644 (file)
@@ -828,7 +828,11 @@ static NTSTATUS idmap_new_mapping(TALLOC_CTX *ctx, struct id_map *map)
                wbret = winbind_lookup_sid(ctx, map->sid, &domname, &name, &sid_type);
                winbind_off();
        } else {
-               wbret = winbindd_lookup_name_by_sid(ctx, map->sid, &domname, &name, &sid_type);
+               char *tmp_dom, *tmp_name;
+               wbret = winbindd_lookup_name_by_sid(ctx, map->sid, &tmp_dom,
+                                                   &tmp_name, &sid_type);
+               domname = tmp_dom;
+               name = tmp_name;
        }
 
        /* check if this is a valid SID and then map it */