Module: sip-router
Branch: master
Commit: 494b383edde7a2d193c220f3117506e4cc95932f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=494b383…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Aug 31 10:29:45 2012 +0200
auth: print return code in log when nonce is invalid
- it will give a clue about why nonce is considered invalid
---
modules/auth/api.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/auth/api.c b/modules/auth/api.c
index 2ee39a7..c79de5c 100644
--- a/modules/auth/api.c
+++ b/modules/auth/api.c
@@ -145,7 +145,7 @@ static int auth_check_hdr_md5(struct sip_msg* msg, auth_body_t* auth,
*auth_res = NONCE_REUSED;
return 0;
} else {
- DBG("auth:pre_auth: Invalid nonce value received\n");
+ DBG("auth:pre_auth: Invalid nonce value received (ret %d)\n", ret);
*auth_res = NOT_AUTHENTICATED;
return 0;
}