summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-21 14:14:40 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-24 15:54:48 +0200
commitced27e1c5de491b4bac6c7817e72816ab075ef32 (patch)
tree095c6e310c9fc55c53bae7bd3f7c3619cca3e178
parent1f7eac907a04361abf89b12ab03284cf57fec0f5 (diff)
downloadsamba-ced27e1c5de491b4bac6c7817e72816ab075ef32.tar.gz
samba-ced27e1c5de491b4bac6c7817e72816ab075ef32.tar.xz
samba-ced27e1c5de491b4bac6c7817e72816ab075ef32.zip
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
-rw-r--r--source3/lib/messages.c4
1 files changed, 4 insertions, 0 deletions
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,