diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2022-04-28 11:48:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 11:48:57 +0200 |
commit | 3b3b2f1f93d7184e8e1a392c0de7be8566bbbf70 (patch) | |
tree | 3a79e1df798b805c089611c0d96704ee7cfa731f /aclk | |
parent | 091540d59aaf80c8198c5a7fbd5440353d82d7ff (diff) |
use aclk_parse_otp_error (#12767)
Diffstat (limited to 'aclk')
-rw-r--r-- | aclk/aclk_otp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/aclk/aclk_otp.c b/aclk/aclk_otp.c index 658e04f9b8..6b4a547fa1 100644 --- a/aclk/aclk_otp.c +++ b/aclk/aclk_otp.c @@ -860,6 +860,8 @@ int aclk_get_env(aclk_env_t *env, const char* aclk_hostname, int aclk_port) { } if (resp.http_code != 200) { error("The HTTP code not 200 OK (Got %d)", resp.http_code); + if (resp.payload_size) + aclk_parse_otp_error(resp.payload); https_req_response_free(&resp); buffer_free(buf); return 1; |