Allow bigger snapshot lengths for D-Bus captures.
[metze/wireshark/wip.git] / sharkd.c
index 00cabfcb56fd80a6e89076e25617e6a85c838bb7..6647189248b46514224a2f23c615f89039883e7b 100644 (file)
--- a/sharkd.c
+++ b/sharkd.c
@@ -465,12 +465,6 @@ cf_open(capture_file *cf, const char *fname, unsigned int type, gboolean is_temp
   cf->drops_known = FALSE;
   cf->drops     = 0;
   cf->snap      = wtap_snapshot_length(cf->wth);
-  if (cf->snap == 0) {
-    /* Snapshot length not known. */
-    cf->has_snap = FALSE;
-    cf->snap = WTAP_MAX_PACKET_SIZE;
-  } else
-    cf->has_snap = TRUE;
   nstime_set_zero(&cf->elapsed_time);
   ref = NULL;
   prev_dis = NULL;