From 71c5a76984bfbaf6ee746d58776b2c1c429fa819 Mon Sep 17 00:00:00 2001 From: Ken Gaillot Date: Dec 15 2020 18:02:10 +0000 Subject: Low: executor: return appropriate error code when no remote support --- diff --git a/daemons/execd/execd_commands.c b/daemons/execd/execd_commands.c index 47502e0..59ac02c 100644 --- a/daemons/execd/execd_commands.c +++ b/daemons/execd/execd_commands.c @@ -1518,9 +1518,11 @@ process_lrmd_signon(pcmk__client_t *client, xmlNode *request, int call_id, } if (crm_is_true(is_ipc_provider)) { - // This is a remote connection from a cluster node's controller #ifdef SUPPORT_REMOTE + // This is a remote connection from a cluster node's controller ipc_proxy_add_provider(client); +#else + rc = -EPROTONOSUPPORT; #endif } @@ -1839,6 +1841,8 @@ process_lrmd_message(pcmk__client_t *client, uint32_t id, xmlNode *request) if (crm_str_eq(op, CRM_OP_IPC_FWD, TRUE)) { #ifdef SUPPORT_REMOTE ipc_proxy_forward_client(client, request); +#else + rc = -EPROTONOSUPPORT; #endif do_reply = 1; } else if (crm_str_eq(op, CRM_OP_REGISTER, TRUE)) {