mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-25 11:08:55 +00:00
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
This commit is contained in:
parent
8dad75ef05
commit
898790d501
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user