From 2d188ef2b3636c724d26d302f32eca8634ceba05 Mon Sep 17 00:00:00 2001 From: Sergio Triana Escobedo Date: Tue, 20 Feb 2024 08:47:25 -0600 Subject: [PATCH] Fixing errors --- plugins/porkbun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/porkbun.c b/plugins/porkbun.c index 196dac41..169754a9 100644 --- a/plugins/porkbun.c +++ b/plugins/porkbun.c @@ -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; }