mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
winbind: Use talloc_strdup_upper where appropriate
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
This commit is contained in:
parent
ae12111685
commit
42899d5426
@ -1115,14 +1115,10 @@ NTSTATUS resolve_username_to_alias( TALLOC_CTX *mem_ctx,
|
||||
if (!cache->tdb)
|
||||
goto do_query;
|
||||
|
||||
upper_name = talloc_strdup(mem_ctx, name);
|
||||
upper_name = talloc_strdup_upper(mem_ctx, name);
|
||||
if (upper_name == NULL) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
if (!strupper_m(upper_name)) {
|
||||
talloc_free(upper_name);
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
centry = wcache_fetch(cache, domain, "NSS/NA/%s", upper_name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user