[asterisk-commits] seanbright: branch 1.8 r316918 - /branches/1.8/main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 4 21:25:24 CDT 2011


Author: seanbright
Date: Wed May  4 21:25:20 2011
New Revision: 316918

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=316918
Log:
Look at the correct buffer for our digest info instead of an empty one.

(issue #18598)
Reported by: ksn

Modified:
    branches/1.8/main/utils.c

Modified: branches/1.8/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/utils.c?view=diff&rev=316918&r1=316917&r2=316918
==============================================================================
--- branches/1.8/main/utils.c (original)
+++ branches/1.8/main/utils.c Wed May  4 21:25:20 2011
@@ -1958,7 +1958,7 @@
  */
 int ast_parse_digest(const char *digest, struct ast_http_digest *d, int request, int pedantic) {
 	int i;
-	char *c, key[512], val[512], tmp[512];
+	char *c, key[512], val[512];
 	struct ast_str *str = ast_str_create(16);
 
 	if (ast_strlen_zero(digest) || !d || !str) {
@@ -1970,7 +1970,7 @@
 
 	c = ast_skip_blanks(ast_str_buffer(str));
 
-	if (strncasecmp(tmp, "Digest ", strlen("Digest "))) {
+	if (strncasecmp(c, "Digest ", strlen("Digest "))) {
 		ast_log(LOG_WARNING, "Missing Digest.\n");
 		ast_free(str);
 		return -1;




More information about the asterisk-commits mailing list