aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-02-20 19:57:04 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-02-20 19:57:04 +0000
commit122ac7dd0e1494a27ac805410f2933833daff24a (patch)
tree29c5aa5a6c4f54d998492eeb5d5050611d91b238 /gtk
parent0c0367bfa13e204ce9d25269a10a8d81f21a657c (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.c3
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;