mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
s3:winbind: Fix possible NULL pointer dereference
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14921 BUG: https://bugzilla.redhat.com/show_bug.cgi?id=2019888 Signed-off-by: Andreas Schneider <asn@samba.org> Rewiewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit cbf312f02bc86f9325fb89f6f5441bc61fd3974f) Autobuild-User(v4-15-test): Jule Anger <janger@samba.org> Autobuild-Date(v4-15-test): Thu Dec 2 11:38:42 UTC 2021 on sn-devel-184
This commit is contained in:
parent
9aa03f402b
commit
dc59b39211
@ -1784,6 +1784,9 @@ char *fill_domain_username_talloc(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
tmp_user = talloc_strdup(mem_ctx, user);
|
||||
if (tmp_user == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
if (!strlower_m(tmp_user)) {
|
||||
TALLOC_FREE(tmp_user);
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user