s3-rpc_client: Pass NULL as no password
authorAndreas Schneider <asn@samba.org>
Mon, 19 Sep 2016 12:40:42 +0000 (14:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 20 Dec 2016 16:37:56 +0000 (17:37 +0100)
GENSEC expects NULL as no password.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Dec 20 17:37:56 CET 2016 on sn-devel-144

source3/rpc_client/cli_pipe.c

index 5418fbe6e1b8fb6add94f6ce598ac672d2e13168..14f7fbc907f3fba0be39a8a94d7a847df15eac6e 100644 (file)
@@ -2629,7 +2629,7 @@ NTSTATUS rpccli_ncalrpc_bind_data(TALLOC_CTX *mem_ctx,
                                        "host", /* target_service */
                                        NAME_NT_AUTHORITY, /* domain */
                                        "SYSTEM",
-                                       "", /* password */
+                                       NULL, /* password */
                                        CRED_DONT_USE_KERBEROS,
                                        NULL, /* netlogon_creds_CredentialState */
                                        presult);