r24937: Merge tests spoolss RPC callbacks.
[kai/samba.git] / source4 / librpc / rpc / dcerpc_connect.c
index be95f2159415f3eae41effbfa82d64e741934e17..bd05498aedbd37d875a1dd208a046bf6745d9afd 100644 (file)
@@ -110,7 +110,10 @@ static struct composite_context *dcerpc_pipe_connect_ncacn_np_smb_send(TALLOC_CT
           remote rpc server */
        conn->in.dest_host              = s->io.binding->host;
        conn->in.port                   = 0;
-       conn->in.called_name            = s->io.binding->target_hostname;
+       if (s->io.binding->target_hostname == NULL)
+               conn->in.called_name = "*SMBSERVER";
+       else
+               conn->in.called_name            = s->io.binding->target_hostname;
        conn->in.service                = "IPC$";
        conn->in.service_type           = NULL;
        conn->in.workgroup              = lp_workgroup();