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
This commit is contained in:
Stephen Fisher 2007-02-20 19:57:04 +00:00
parent 0c0367bfa1
commit 122ac7dd0e
1 changed files with 2 additions and 1 deletions

View File

@ -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;