diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-06 00:36:25 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-06 00:36:25 +0000 |
commit | 2865e52843f84d3ca4bd60286a1948464dc4fc83 (patch) | |
tree | 45c6da2228435251204ae53bd67d024465e61bb3 /gtk/export_object_http.c | |
parent | 8d8452b419de5fcab20af4a5eeebb0dfb8898af5 (diff) |
Export Object code/documentation updates:
- Note in the user's guide that export object is not available
in GTK1 builds of Wireshark.
- Make scanning through the slists more efficient
- Use new tap.c function called have_tap_listener() to only save
object payload data when the export object listener is actively
listening for it.
- Save objects in the HTTP dissector with g_malloc() instead of
se_malloc() and free it when we're done with it - when the
export object window is closed (Fixes bug #1412)
- Various minor improvements
svn path=/trunk/; revision=20980
Diffstat (limited to 'gtk/export_object_http.c')
-rw-r--r-- | gtk/export_object_http.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/export_object_http.c b/gtk/export_object_http.c index 2665f595cd..6ae40ca9c9 100644 --- a/gtk/export_object_http.c +++ b/gtk/export_object_http.c @@ -50,9 +50,10 @@ eo_http_packet(void *tapdata, packet_info *pinfo, epan_dissect_t *edt _U_, const http_info_value_t *stat_info = data; export_object_entry_t *entry; - if(stat_info->content_type) { /* We have new data waiting */ - entry = g_malloc(sizeof(export_object_entry_t)); - + if(stat_info->content_type && /* We have data waiting for us */ + g_ascii_strncasecmp(stat_info->content_type, "<NULL>", 6) != 0) { + entry = g_malloc(sizeof(export_object_entry_t)); + entry->pkt_num = pinfo->fd->num; entry->hostname = stat_info->http_host; entry->content_type = stat_info->content_type; |