Skip to content

Commit

Permalink
Fixing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stescobedo92 committed Feb 20, 2024
1 parent cae26d4 commit 2d188ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/porkbun.c
Expand Up @@ -167,7 +167,7 @@ static int get_result_value(const char *json, const char *key, jsmntok_t *out_re
goto cleanup;
}

if (check_status(json, tokens, num_tokens) == -1) {
if (json_bool(json, tokens + i + 1, &num_tokens) == -1) {
logit(LOG_ERR, "Request was unsuccessful.");
goto cleanup;
}
Expand Down

0 comments on commit 2d188ef

Please sign in to comment.