]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: Fix a "format string is not a string literal" warning
authorVolker Lendecke <vl@samba.org>
Fri, 22 Jul 2022 17:34:57 +0000 (19:34 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 23 Jul 2022 23:29:38 +0000 (23:29 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_pam.c

index 1963163a865960bc049781690dd3c8dafb1a63d8..a16c8d552ab27fa59987855cc96cd0c055ed2015 100644 (file)
@@ -2256,7 +2256,8 @@ NTSTATUS _wbint_PamAuth(struct pipes_struct *p,
        }
 
        if (mapped_user != r->in.info->username) {
-               domain_user = talloc_asprintf("%s%c%s",
+               domain_user = talloc_asprintf(talloc_tos(),
+                                             "%s%c%s",
                                              name_domain,
                                              *lp_winbind_separator(),
                                              name_user);