summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wb_client.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/nsswitch/wb_client.c b/source3/nsswitch/wb_client.c
index 8c62b3124f..f122512c13 100644
--- a/source3/nsswitch/wb_client.c
+++ b/source3/nsswitch/wb_client.c
@@ -328,9 +328,10 @@ BOOL sid_to_uid(DOM_SID *psid, uid_t *puid, enum SID_NAME_USE *sidtype)
*/
if (!winbind_lookup_sid(psid, dom_name, name, &name_type)) {
- fstring sid_str;
+ fstring sid_str2;
+
DEBUG(10,("sid_to_uid: winbind lookup for sid %s failed - trying local.\n",
- sid_to_string(sid_str, psid) ));
+ sid_to_string(sid_str2, psid) ));
return local_sid_to_uid(puid, psid, sidtype);
}
@@ -379,9 +380,10 @@ BOOL sid_to_gid(DOM_SID *psid, gid_t *pgid, enum SID_NAME_USE *sidtype)
*/
if (!winbind_lookup_sid(psid, dom_name, name, &name_type)) {
- fstring sid_str;
+ fstring sid_str2;
+
DEBUG(10,("sid_to_gid: winbind lookup for sid %s failed - trying local.\n",
- sid_to_string(sid_str, psid) ));
+ sid_to_string(sid_str2, psid) ));
return local_sid_to_gid(pgid, psid, sidtype);
}