aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-27 19:07:36 +0000
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-27 19:07:36 +0000
commit20d6ec1599ae21db5f0d9b619b91b92f4eb95266 (patch)
tree9eb1ae0d32d89ab838a6f808eb2eaba936a95943 /capture_sync.c
parentf4d706a364081d03f04f1d12af67ca62450fbdef (diff)
Fix the bug reported by Guy. Now
tshark -i en0 icmpp returns a correct error message. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37806 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 310c917994..addb714b7b 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -438,12 +438,6 @@ sync_pipe_start(capture_options *capture_opts) {
argv = sync_pipe_add_arg(argv, &argc, "-f");
argv = sync_pipe_add_arg(argv, &argc, interface_opts.cfilter);
}
- if (interface_opts.cfilter == NULL &&
- capture_opts->default_options.cfilter != NULL &&
- strlen(capture_opts->default_options.cfilter) != 0) {
- argv = sync_pipe_add_arg(argv, &argc, "-f");
- argv = sync_pipe_add_arg(argv, &argc, capture_opts->default_options.cfilter);
- }
if (interface_opts.snaplen != WTAP_MAX_PACKET_SIZE) {
argv = sync_pipe_add_arg(argv, &argc, "-s");
g_snprintf(ssnap, ARGV_NUMBER_LEN, "%d", interface_opts.snaplen);