diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2007-02-20 19:57:04 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2007-02-20 19:57:04 +0000 |
commit | 122ac7dd0e1494a27ac805410f2933833daff24a (patch) | |
tree | 29c5aa5a6c4f54d998492eeb5d5050611d91b238 /gtk | |
parent | 0c0367bfa13e204ce9d25269a10a8d81f21a657c (diff) |
Treat "<NULL>" as returned from a call to se_strdup() in packet-http.c as a
NULL value when checking if the content-type was found.
svn path=/trunk/; revision=20880
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/content_list_http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/content_list_http.c b/gtk/content_list_http.c index cbac5b9ba4..6bf97ca2cc 100644 --- a/gtk/content_list_http.c +++ b/gtk/content_list_http.c @@ -143,7 +143,8 @@ cl_http_packet(void *tapdata, packet_info *pinfo, epan_dissect_t *edt _U_, const http_info_value_t *stat_info = data; cl_http_entry_t *entry; - if(stat_info->content_type) { + if(stat_info->content_type && + g_ascii_strncasecmp(stat_info->content_type, "<NULL>", 6) != 0) { entry = g_malloc(sizeof(cl_http_entry_t)); entry->pkt_num = pinfo->fd->num; |