aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jwt.c b/jwt.c
index 2587b91..94f2f6e 100644
--- a/jwt.c
+++ b/jwt.c
@@ -137,7 +137,7 @@ int jwt_check(const char *const jwt, const void *const key, const size_t n)
else if (!(dhmac = base64_decode(p + 1, &hmaclen)))
{
fprintf(stderr, "%s: base64_decode failed\n", __func__);
- return -1;
+ return 1;
}
const int r = memcmp(dhmac, hmac, hmaclen);