diff -ruN ./0.6/config.h ./0.7/config.h --- ./0.6/config.h Tue May 14 13:54:47 2002 +++ ./0.7/config.h Thu May 16 17:36:39 2002 @@ -1,2 +1,2 @@ #define TCP_PORT 8080 -#define VERSION "0.6" +#define VERSION "0.7" diff -ruN ./0.6/connection.c ./0.7/connection.c --- ./0.6/connection.c Thu May 16 17:16:43 2002 +++ ./0.7/connection.c Fri May 17 18:58:29 2002 @@ -319,7 +319,6 @@ BAIL_OUT; tmp_server_id = strtol(c_server_id, NULL, 10); connection->server_id = (int)tmp_server_id; - fprintf(stderr,"SERVER ID: %d\n",connection->server_id); len = (int) strlen(line); q++; while (q < len){ @@ -380,17 +379,11 @@ while (!no_more_cookies){ c = strchr(line_ptr, ';'); if(!c) { - c = line_ptr + strlen(line_ptr)-1; + c = line_ptr + strlen(line_ptr); no_more_cookies = 1; } - else{ - c++; - while (isspace(*c)) c++; - c--; - } *c = '\0'; /* now single cookie string is in line_ptr */ - /* verify S[0-9]{1.5]=value */ if (is_valid_cookie(line_ptr)){ DEBUG("got valid cookie\n"); @@ -429,6 +422,7 @@ line_ptr = c; line_ptr ++; + while (isspace(*line_ptr)) line_ptr++; } } else { @@ -446,10 +440,11 @@ */ if (connection->server_id > MAX_SERVER_ID || connection->server_id == 0) BAIL_OUT_EXIT; - fprintf(stderr,"Received V cookie, no S cookie - creating new session, with first_visit_flag = 0\n"); connection->do_set_cookie = 1; connection->set_cookie = get_identifier( connection->server_id, time(NULL)); + fprintf(stderr,"creating new session, with first_visit_flag = 0, id = %s\n", + connection->set_cookie); add_new_item(N, time(NULL), connection->set_cookie, got_V_cookie, (char *)strdup(connection->ip_addr)); } diff -ruN ./0.6/logfile ./0.7/logfile --- ./0.6/logfile Fri May 10 16:44:31 2002 +++ ./0.7/logfile Thu Jan 1 01:00:00 1970 @@ -1,8 +0,0 @@ -1021041871: 49172: Dmalloc version '4.8.1' from 'http://dmalloc.com/' -1021041871: 49172: flags = 0x4f47503, logfile 'logfile' -1021041871: 49172: interval = 100, addr = 0, seen # = 0 -1021041871: 49172: starting time = 1021041844 -1021041871: 49172: free: failed OVER picket-fence magic-number check: pointer '0x8471108' from 'connection.c:391' -1021041871: 49172: Dump of proper fence-top bytes: 'i\336\312\372' -1021041871: 49172: Dump of '0x8471108'+31: '\000\336\312\372\305\305\305\305\305\305\305\305\305\305\305\305\305\305\305\305\305\305\305\305' -1021041871: 49172: ERROR: fence_read: failed OVER picket-fence magic-number check (err 27)