summaryrefslogtreecommitdiff
path: root/src/responder/common/responder_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/responder/common/responder_common.c')
-rw-r--r--src/responder/common/responder_common.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c
index 824c649a..a4355ae6 100644
--- a/src/responder/common/responder_common.c
+++ b/src/responder/common/responder_common.c
@@ -262,6 +262,14 @@ static void client_send(struct cli_ctx *cctx)
return;
}
+static int client_cmd_execute(struct cli_ctx *cctx, struct sss_cmd_table *sss_cmds)
+{
+ enum sss_cli_command cmd;
+
+ cmd = sss_packet_get_cmd(cctx->creq->in);
+ return sss_cmd_execute(cctx, cmd, sss_cmds);
+}
+
static void client_recv(struct cli_ctx *cctx)
{
int ret;
@@ -291,7 +299,7 @@ static void client_recv(struct cli_ctx *cctx)
/* do not read anymore */
TEVENT_FD_NOT_READABLE(cctx->cfde);
/* execute command */
- ret = sss_cmd_execute(cctx, cctx->rctx->sss_cmds);
+ ret = client_cmd_execute(cctx, cctx->rctx->sss_cmds);
if (ret != EOK) {
DEBUG(0, ("Failed to execute request, aborting client!\n"));
talloc_free(cctx);