aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-http.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index 5fbda8aed0..204c5bc439 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -2269,7 +2269,8 @@ is_http_request_or_reply(const gchar *data, int linelen, http_type_t *type,
* From draft-ietf-dasl-protocol-00.txt, a now vanished Microsoft draft:
* SEARCH
*/
- if (linelen >= 5 && strncmp(data, "HTTP/", 5) == 0) {
+ if ((linelen >= 5 && strncmp(data, "HTTP/", 5) == 0) ||
+ (linelen >= 3 && strncmp(data, "ICY", 3) == 0)) {
*type = HTTP_RESPONSE;
isHttpRequestOrReply = TRUE; /* response */
if (reqresp_dissector)
@@ -2297,10 +2298,6 @@ is_http_request_or_reply(const gchar *data, int linelen, http_type_t *type,
*type = HTTP_REQUEST;
isHttpRequestOrReply = TRUE;
}
- else if (strncmp(data, "ICY", indx) == 0) {
- *type = HTTP_RESPONSE;
- isHttpRequestOrReply = TRUE;
- }
break;
case 4: