Module: kamailio
Branch: master
Commit: 0cbb2eb035c7d2a29ae707cde94a2c0573e0ffd5
URL:
https://github.com/kamailio/kamailio/commit/0cbb2eb035c7d2a29ae707cde94a2c0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-10-22T07:34:29+02:00
jwt: print decode result in error log message
---
Modified: src/modules/jwt/jwt_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0cbb2eb035c7d2a29ae707cde94a2c0…
Patch:
https://github.com/kamailio/kamailio/commit/0cbb2eb035c7d2a29ae707cde94a2c0…
---
diff --git a/src/modules/jwt/jwt_mod.c b/src/modules/jwt/jwt_mod.c
index 0efb793c47f..af3d42f79c5 100644
--- a/src/modules/jwt/jwt_mod.c
+++ b/src/modules/jwt/jwt_mod.c
@@ -498,7 +498,7 @@ static int ki_jwt_verify_key(
ret = jwt_decode(
&jwt, jwtval->s, (unsigned char *)kdata.s, (size_t)kdata.len);
if(ret != 0 || jwt == NULL) {
- LM_ERR("failed to decode jwt value\n");
+ LM_ERR("failed to decode jwt value (ret: %d jwt: %p)\n", ret, jwt);
goto error;
}
if(jwt_validate(jwt, jwt_valid) != 0) {