From 898790d501a7c07c0023dd944e56c6020d7b0ac9 Mon Sep 17 00:00:00 2001 From: Christine Caulfield Date: Mon, 7 Sep 2009 07:28:25 +0000 Subject: [PATCH] Return CS_ERR_NOT_EXIST if a client tries to contact a plugin that isn't loaded. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2403 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/coroipcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/coroipcs.c b/exec/coroipcs.c index 03e580c5..ab7be0b6 100644 --- a/exec/coroipcs.c +++ b/exec/coroipcs.c @@ -1385,7 +1385,6 @@ int coroipcs_handler_dispatch ( if (res != 1) { return (0); } - req_setup_send (conn_info, CS_OK); pthread_mutex_init (&conn_info->mutex, NULL); req_setup = (mar_req_setup_t *)conn_info->setup_msg; @@ -1393,9 +1392,11 @@ int coroipcs_handler_dispatch ( * Is the service registered ? */ if (api->service_available (req_setup->service) == 0) { + req_setup_send (conn_info, CS_ERR_NOT_EXIST); ipc_disconnect (conn_info); return (0); } + req_setup_send (conn_info, CS_OK); #if _POSIX_THREAD_PROCESS_SHARED < 1 conn_info->semkey = req_setup->semkey;