From: Volker Lendecke Date: Wed, 8 Mar 2017 09:17:16 +0000 (+0100) Subject: winbind: Use talloc_strdup_upper where appropriate X-Git-Tag: tdb-1.3.13~612 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42899d542665c0adcfd5285d23164a8615e51ef5;p=thirdparty%2Fsamba.git winbind: Use talloc_strdup_upper where appropriate Signed-off-by: Volker Lendecke Reviewed-by: Uri Simchoni --- diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 4bb01956e88..314ce1d5d03 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -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);