Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[6720] cherokee/trunk/cherokee: "'re' might be used uninitialized in this function." (Klocwork.com

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

May 24, 2011, 12:58 PM

Post #1 of 1 (140 views)
Permalink
[6720] cherokee/trunk/cherokee: "'re' might be used uninitialized in this function." (Klocwork.com

Revision: 6720
http://svn.cherokee-project.com/changeset/6720
Author: alo
Date: 2011-05-24 21:58:16 +0200 (Tue, 24 May 2011)
Log Message:
-----------
"'re' might be used uninitialized in this function." (Klocwork.com
Issue #128)

Modified Paths:
--------------
cherokee/trunk/cherokee/validator.c
cherokee/trunk/cherokee/validator_htdigest.c

Modified: cherokee/trunk/cherokee/validator.c
===================================================================
--- cherokee/trunk/cherokee/validator.c 2011-05-24 17:23:50 UTC (rev 6719)
+++ cherokee/trunk/cherokee/validator.c 2011-05-24 19:58:16 UTC (rev 6720)
@@ -294,8 +294,8 @@
cherokee_buffer_t *buf,
cherokee_connection_t *conn)
{
- ret_t ret;
- cherokee_buffer_t a2 = CHEROKEE_BUF_INIT;
+ ret_t ret;
+ cherokee_buffer_t a2 = CHEROKEE_BUF_INIT;

/* A1 has to be in string of length 32:
* MD5_digest(user":"realm":"passwd)

Modified: cherokee/trunk/cherokee/validator_htdigest.c
===================================================================
--- cherokee/trunk/cherokee/validator_htdigest.c 2011-05-24 17:23:50 UTC (rev 6719)
+++ cherokee/trunk/cherokee/validator_htdigest.c 2011-05-24 19:58:16 UTC (rev 6720)
@@ -190,8 +190,8 @@
static ret_t
validate_digest (cherokee_validator_htdigest_t *htdigest, cherokee_connection_t *conn, cherokee_buffer_t *file)
{
- int re;
ret_t ret;
+ int re = -1;
char *user = NULL;
char *realm = NULL;
char *passwd = NULL;

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.