mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
Correctly check for errors in strlower_m() returns.
This commit is contained in:
@ -370,7 +370,11 @@ static int process_root(int local_flags)
|
||||
if (local_flags & LOCAL_ADD_USER) {
|
||||
SAFE_FREE(new_passwd);
|
||||
new_passwd = smb_xstrdup(user_name);
|
||||
strlower_m(new_passwd);
|
||||
if (!strlower_m(new_passwd)) {
|
||||
fprintf(stderr, "strlower_m %s failed\n",
|
||||
new_passwd);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user