*** spp_http_decode.c Tue Oct 15 10:59:32 2002 --- spp_http_decode.c.org Tue Oct 15 10:56:52 2002 *************** *** 440,450 **** psize = (u_int16_t) (p->dsize); /* first skip past the HTTP method */ ! while(index < end && !lookup_whitespace[(u_char)(*index)]) index++; /* skip over whitespace seperator */ ! while(index < end && lookup_whitespace[(u_char)(*index)]) index++; /* evilness check */ --- 440,450 ---- psize = (u_int16_t) (p->dsize); /* first skip past the HTTP method */ ! while(index < end && !lookup_whitespace[(u_int)(*index)]) index++; /* skip over whitespace seperator */ ! while(index < end && lookup_whitespace[(u_int)(*index)]) index++; /* evilness check */ *************** *** 506,512 **** need the original packet data to stay around do { ! if(*index == '%' || lookup_whitespace[(u_char)(*index)]) break; if(*index == '?' && end_on_url_param) break; --- 506,512 ---- need the original packet data to stay around do { ! if(*index == '%' || lookup_whitespace[(u_int)(*index)]) break; if(*index == '?' && end_on_url_param) break; *************** *** 558,565 **** "Double hex encoding received\n");); } ! hex1=lookup_hexvalue[(u_char)(*(index+1))]; ! hex2=lookup_hexvalue[(u_char)(*(index+2))]; if(hex1 != -1 && hex2 != -1) { --- 558,565 ---- "Double hex encoding received\n");); } ! hex1=lookup_hexvalue[(u_int)(*(index+1))]; ! hex2=lookup_hexvalue[(u_int)(*(index+2))]; if(hex1 != -1 && hex2 != -1) { *************** *** 608,614 **** } } ! else if(lookup_whitespace[(u_char)(*index)]) { /* we've reached the delimiting whitespace */ /* UriBufs[0].http_version = (u_int8_t *) index; */ --- 608,614 ---- } } ! else if(lookup_whitespace[(u_int)(*index)]) { /* we've reached the delimiting whitespace */ /* UriBufs[0].http_version = (u_int8_t *) index; */ *************** *** 625,631 **** while(index < end && ((cur - (char *) UriBufs[0].uri) < URI_LENGTH)) { ! if(lookup_whitespace[(u_char)(*index)]) { /* we've reached the delimiting whitespace */ /* Time to get HTTP version? */ --- 625,631 ---- while(index < end && ((cur - (char *) UriBufs[0].uri) < URI_LENGTH)) { ! if(lookup_whitespace[(u_int)(*index)]) { /* we've reached the delimiting whitespace */ /* Time to get HTTP version? */