Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Ovchinnikov committed Jan 29, 2024
1 parent ab786bd commit dd00b23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sources/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dd00b23

Please sign in to comment.