aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-http.c
diff options
context:
space:
mode:
authorTom <tom916@qq.com>2016-08-21 10:29:11 -0400
committerAnders Broman <a.broman58@gmail.com>2016-08-22 04:43:40 +0000
commit3aac4b154947f6b73a623e1f23b0718a54fe56c9 (patch)
tree368e4a0013508657dd708a315651ec83f5507839 /epan/dissectors/packet-http.c
parent928e90790609938cb90419244a86316f4abf6a8d (diff)
Loosen HTTP token sting requirements so HTTP 1.0 can be included.
Bug: 12770 Change-Id: I5f71072231a752ce6cdedf6f22ce8931a61c39c7 Reviewed-on: https://code.wireshark.org/review/17214 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-http.c')
-rw-r--r--epan/dissectors/packet-http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index 3095536350..edde7974fa 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -3186,7 +3186,7 @@ dissect_http_heur_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
}
/* Check if the line start or ends with the HTTP token */
- if((tvb_strncaseeql(tvb, linelen-8, "HTTP/1.1", 8) == 0)||(tvb_strncaseeql(tvb, 0, "HTTP/1.1", 8) == 0)){
+ if((tvb_strncaseeql(tvb, linelen-8, "HTTP/1.", 7) == 0)||(tvb_strncaseeql(tvb, 0, "HTTP/1.", 7) == 0)){
conversation = find_or_create_conversation(pinfo);
conversation_set_dissector_from_frame_number(conversation, pinfo->num, http_tcp_handle);
dissect_http_tcp(tvb, pinfo, tree, data);