Module: sip-router
Branch: master
Commit: 3f5909fd3ca55aa43148d81a8874eaeaeaf91968
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3f5909f…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Tue Jun 29 12:26:30 2010 +0200
auc(k): fix error in authentification: Digest should be compared case insensitive
---
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 350fea4..793cfbc 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))