Browse Source

auth: print return code in log when nonce is invalid

- it will give a clue about why nonce is considered invalid
Daniel-Constantin Mierla 13 years ago
parent
commit
494b383edd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/auth/api.c

+ 1 - 1
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;
 		}