From 6a4f6c5177b4837fe7a238f067abbc5739ab0812 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 14 Apr 2007 06:44:30 +0000 Subject: [PATCH] r22214: Fix incompatible pointer type warnings. Simo, please check and merge to 3_0_25 if appropriate. Volker --- source/nsswitch/idmap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/nsswitch/idmap.c b/source/nsswitch/idmap.c index 3a3c2bf05f2..dac1eb0521e 100644 --- a/source/nsswitch/idmap.c +++ b/source/nsswitch/idmap.c @@ -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 */