Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
[kamenim/samba.git] / source3 / smbd / change_trust_pw.c
index 227b2d689991064411c66f333fb4288f2c6e9f95..72a72a78b5c21137e938ce0402e329f587489bc4 100644 (file)
@@ -73,8 +73,9 @@ NTSTATUS change_trust_account_password( const char *domain, const char *remote_m
 
        /* Shouldn't we open this with schannel ? JRA. */
 
-       netlogon_pipe = cli_rpc_pipe_open_noauth(cli, PI_NETLOGON, &nt_status);
-       if (!netlogon_pipe) {
+       nt_status = cli_rpc_pipe_open_noauth(
+               cli, &ndr_table_netlogon.syntax_id, &netlogon_pipe);
+       if (!NT_STATUS_IS_OK(nt_status)) {
                DEBUG(0,("modify_trust_password: unable to open the domain client session to machine %s. Error was : %s.\n", 
                        dc_name, nt_errstr(nt_status)));
                cli_shutdown(cli);