diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-11-21 22:40:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-11-21 22:40:40 +0000 |
commit | 0d178f826a41e3ed92b6318ae3424db6604b38c7 (patch) | |
tree | 8075d6800360c125adee209c16be46d922c96f1f /packet-http.c | |
parent | 90eccd89b898d0edff6ae9faffc32855b687f2f3 (diff) | |
download | wireshark-0d178f826a41e3ed92b6318ae3424db6604b38c7.tar.gz wireshark-0d178f826a41e3ed92b6318ae3424db6604b38c7.tar.bz2 wireshark-0d178f826a41e3ed92b6318ae3424db6604b38c7.zip |
Initialize "http_type" to HTTP_OTHERS before calling
"is_http_request_or_reply()", so that if "is_http_request_or_reply()"
decides the line is part of a request or a response it'll set "*type"
(which it does only if "*type" is HTTP_OTHERS).
svn path=/trunk/; revision=2690
Diffstat (limited to 'packet-http.c')
-rw-r--r-- | packet-http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-http.c b/packet-http.c index 3842c66e5a..307eb6de41 100644 --- a/packet-http.c +++ b/packet-http.c @@ -3,7 +3,7 @@ * * Guy Harris <guy@alum.mit.edu> * - * $Id: packet-http.c,v 1.29 2000/11/19 08:53:57 guy Exp $ + * $Id: packet-http.c,v 1.30 2000/11/21 22:40:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -93,6 +93,7 @@ dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) */ 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,6 +109,7 @@ dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* * 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. |