1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3:lib: make sure we don't try to send messages to server_id's marked as disconnected

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug 24 15:54:48 CEST 2012 on sn-devel-104
This commit is contained in:
Stefan Metzmacher 2012-08-21 14:14:40 +02:00
parent 1f7eac907a
commit ced27e1c5d

View File

@ -351,6 +351,10 @@ NTSTATUS messaging_send(struct messaging_context *msg_ctx,
struct server_id server, uint32_t msg_type, struct server_id server, uint32_t msg_type,
const DATA_BLOB *data) const DATA_BLOB *data)
{ {
if (server_id_is_disconnected(&server)) {
return NT_STATUS_INVALID_PARAMETER_MIX;
}
#ifdef CLUSTER_SUPPORT #ifdef CLUSTER_SUPPORT
if (!procid_is_local(&server)) { if (!procid_is_local(&server)) {
return msg_ctx->remote->send_fn(msg_ctx, server, return msg_ctx->remote->send_fn(msg_ctx, server,