1
0
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:
Jeremy Allison
2012-08-08 17:01:00 -07:00
parent ce21d08040
commit b70f23c2b5
42 changed files with 225 additions and 72 deletions

View File

@ -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);
}
}
/*