From ced27e1c5de491b4bac6c7817e72816ab075ef32 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 21 Aug 2012 14:14:40 +0200 Subject: s3:lib: make sure we don't try to send messages to server_id's marked as disconnected metze Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Fri Aug 24 15:54:48 CEST 2012 on sn-devel-104 --- source3/lib/messages.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 6a18e4f079..cd763e7265 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -351,6 +351,10 @@ NTSTATUS messaging_send(struct messaging_context *msg_ctx, struct server_id server, uint32_t msg_type, const DATA_BLOB *data) { + if (server_id_is_disconnected(&server)) { + return NT_STATUS_INVALID_PARAMETER_MIX; + } + #ifdef CLUSTER_SUPPORT if (!procid_is_local(&server)) { return msg_ctx->remote->send_fn(msg_ctx, server, -- cgit