Ethereal-users: Re: [Ethereal-users] 0.8.14 Win32 Doesn't Colorize Capture Window Anymore

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 21 Nov 2000 14:41:59 -0800 (PST)
> Followup, http.request and http.response don't work but ftp.request does.

A fix has been checked in; for those who have compilers, the patch is
attached.  (For those who don't have compilers, I don't know when the
next release, containing this fix, will come out.)
Index: packet-http.c
===================================================================
RCS file: /usr/local/cvsroot/ethereal/packet-http.c,v
retrieving revision 1.29
diff -c -r1.29 packet-http.c
*** packet-http.c	2000/11/19 08:53:57	1.29
--- packet-http.c	2000/11/21 22:38:56
***************
*** 93,98 ****
--- 93,99 ----
  		 */
  		linelen = tvb_find_line_end(tvb, offset, -1, &next_offset);
  		line = tvb_get_ptr(tvb, offset, linelen);
+ 		http_type = HTTP_OTHERS;	/* type not known yet */
  		if (is_http_request_or_reply(line, linelen, &http_type))
  			col_add_str(pinfo->fd, COL_INFO,
  			    format_text(line, linelen));
***************
*** 108,113 ****
--- 109,115 ----
  		/*
  		 * Process the packet data, a line at a time.
  		 */
+ 		http_type = HTTP_OTHERS;	/* type not known yet */
  		while (tvb_offset_exists(tvb, offset)) {
  			/*
  			 * Find the end of the line.