[sr-dev] git:master: auc(k): fix error in authentification: Digest should be compared case insensitive
Henning Westerholt
henning.westerholt at 1und1.de
Tue Jun 29 12:27:02 CEST 2010
Module: sip-router
Branch: master
Commit: 3f5909fd3ca55aa43148d81a8874eaeaeaf91968
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3f5909fd3ca55aa43148d81a8874eaeaeaf91968
Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 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))
More information about the sr-dev
mailing list