From dd00b23e6a9423137361b1e22294ded08e7f99db Mon Sep 17 00:00:00 2001 From: Andrey Ovchinnikov Date: Mon, 29 Jan 2024 15:47:47 +0300 Subject: [PATCH] fix issue --- sources/auth.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/auth.c b/sources/auth.c index 0e76fd321..44d32002b 100644 --- a/sources/auth.c +++ b/sources/auth.c @@ -695,15 +695,17 @@ static inline int od_auth_frontend_mdb_iamproxy(od_client_t *client) return -1; } + /* start iam checking */ int authenticate_result = mdb_iamproxy_authenticate_user(client->startup.user.value, client_token.password, instance, client); kiwi_password_free(&client_token); machine_msg_free(msg); - if (authenticate_result == OK_RESPONSE) { - return OK_RESPONSE; + if (authenticate_result != OK_RESPONSE) { + goto auth_failed; // refence at line 80, 100 and etc } + return OK_RESPONSE; auth_failed: od_log(&instance->logger, "auth", client, NULL,