From f4bf1b2f528ee7c5a02686bc2c54f436ccd5dc60 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 8 Apr 2021 10:16:54 +0200 Subject: [PATCH] winexe: Some code cleanup and fixes Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- examples/winexe/winexe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/winexe/winexe.c b/examples/winexe/winexe.c index fc37550b716..3e0813a4091 100644 --- a/examples/winexe/winexe.c +++ b/examples/winexe/winexe.c @@ -1807,7 +1807,7 @@ int main(int argc, char *argv[]) TALLOC_CTX *frame = talloc_stackframe(); const char **const_argv = discard_const_p(const char *, argv); struct program_options options = {0}; - struct cli_state *cli; + struct cli_state *cli = NULL; const char *service_name = SERVICE_NAME; char *service_filename = NULL; #ifdef HAVE_WINEXE_CC_WIN32 @@ -1843,12 +1843,12 @@ int main(int argc, char *argv[]) status = cli_full_connection_creds( &cli, - NULL, + lp_netbios_name(), options.hostname, NULL, options.port, "IPC$", - "?????", + "IPC", options.credentials, CLI_FULL_CONNECTION_IPC); -- 2.47.2