From: Andreas Schneider Date: Thu, 8 Apr 2021 08:16:54 +0000 (+0200) Subject: winexe: Some code cleanup and fixes X-Git-Tag: tevent-0.11.0~273 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f4bf1b2f528ee7c5a02686bc2c54f436ccd5dc60;p=thirdparty%2Fsamba.git winexe: Some code cleanup and fixes Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- 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);