git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
629f966
)
r22214: Fix incompatible pointer type warnings. Simo, please check and merge to 3_0_25
author
Volker Lendecke
<vlendec@samba.org>
Sat, 14 Apr 2007 06:44:30 +0000
(06:44 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:19:20 +0000
(12:19 -0500)
if appropriate.
Volker
source/nsswitch/idmap.c
patch
|
blob
|
history
diff --git
a/source/nsswitch/idmap.c
b/source/nsswitch/idmap.c
index 3a3c2bf05f233ea8ef3cad8ceccc84ed0a4fb0ef..dac1eb0521ee982760b848537da5270518ce10c2 100644
(file)
--- 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 */