diff options
author | Andreas Schneider <asn@samba.org> | 2021-04-08 10:16:54 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2021-06-20 23:26:32 +0000 |
commit | f4bf1b2f528ee7c5a02686bc2c54f436ccd5dc60 (patch) | |
tree | bf0420ce89da1492e6245302a123feb4a6a9133d /examples | |
parent | 32a71e50b49db2b06ea7a8a2b8aa0606b0455f1f (diff) | |
download | samba-f4bf1b2f528ee7c5a02686bc2c54f436ccd5dc60.tar.gz |
winexe: Some code cleanup and fixes
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/winexe/winexe.c | 6 |
1 files 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); |