[sr-dev] git:kamailio_3.0: auc(k): fix error in authentification: Digest should be compared case insensitive

Marius Zbihlei marius.zbihlei at 1and1.ro
Tue Jun 29 13:08:02 CEST 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 96d8f8335587d35b6a2b887f597fdc68de799875
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=96d8f8335587d35b6a2b887f597fdc68de799875

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Tue Jun 29 12:26:30 2010 +0200

auc(k): fix error in authentification: Digest should be compared case insensitive
(cherry picked from commit 3f5909fd3ca55aa43148d81a8874eaeaeaf91968)

---

 modules_k/uac/auth_hdr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/uac/auth_hdr.c b/modules_k/uac/auth_hdr.c
index 269f0bb..c8fd359 100644
--- a/modules_k/uac/auth_hdr.c
+++ b/modules_k/uac/auth_hdr.c
@@ -112,7 +112,7 @@ int parse_authenticate_body( str *body, struct authenticate_body *auth)
 	while (p<end && isspace((int)*p)) p++;
 	if (p+AUTHENTICATE_DIGEST_LEN>=end )
 		goto parse_error;
-	if (strncmp(p,AUTHENTICATE_DIGEST_S,AUTHENTICATE_DIGEST_LEN)!=0)
+	if (strncasecmp(p,AUTHENTICATE_DIGEST_S,AUTHENTICATE_DIGEST_LEN)!=0)
 		goto parse_error;
 	p += AUTHENTICATE_DIGEST_LEN;
 	if (!isspace((int)*p))




More information about the sr-dev mailing list