summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/wb_fill_pwent.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/wb_fill_pwent.c')
-rw-r--r--source3/winbindd/wb_fill_pwent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/winbindd/wb_fill_pwent.c b/source3/winbindd/wb_fill_pwent.c
index a716245ce85..62b1b4a1896 100644
--- a/source3/winbindd/wb_fill_pwent.c
+++ b/source3/winbindd/wb_fill_pwent.c
@@ -111,7 +111,10 @@ static void wb_fill_pwent_sid2gid_done(struct tevent_req *subreq)
/* Username */
fstrcpy(user_name, state->info->acct_name);
- strlower_m(user_name);
+ if (!strlower_m(user_name)) {
+ tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER);
+ return;
+ }
status = normalize_name_map(state, domain, user_name, &mapped_name);
/* Basic removal of whitespace */