]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-netlogon: Escape user-supplied computer name in Bad credentials log line
authorAndrew Bartlett <abartlet@samba.org>
Mon, 26 Jun 2017 07:25:05 +0000 (19:25 +1200)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Jun 2017 14:57:42 +0000 (16:57 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/rpc_server/netlogon/dcerpc_netlogon.c

index df0b730757bfb2fc9b0d1bde65909673e23e7590..b50b7a529801ca531d2ecb743b78a637f9b939db 100644 (file)
@@ -2011,9 +2011,9 @@ static NTSTATUS dcesrv_netr_LogonGetDomainInfo(struct dcesrv_call_state *dce_cal
                                                frame);
                DBG_ERR(("Bad credentials - "
                         "computer[%s] remote[%s] local[%s]\n"),
-                        r->in.computer_name,
-                        remote,
-                        local);
+                       log_escape(frame, r->in.computer_name),
+                       remote,
+                       local);
                talloc_free(frame);
        }
        NT_STATUS_NOT_OK_RETURN(status);