diff options
author | Dario Lombardo <lomato@gmail.com> | 2015-11-17 09:21:45 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-11-17 08:25:35 +0000 |
commit | 622603b277043bca649e4a370af252bb4802181c (patch) | |
tree | fdbc26907d0001c2f0aa28b921a7273e80e75c3c /extcap.c | |
parent | 527e032b800b11fe3e816659c542e3680981b34c (diff) | |
download | wireshark-622603b277043bca649e4a370af252bb4802181c.tar.gz |
extcap: fix a bug in cfilter
When no filter is specified, interface_opts.cfilter is not null but an empty string.
Change-Id: I5755ab7dd840be28334768cf26999048441fcc4e
Reviewed-on: https://code.wireshark.org/review/11907
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -583,7 +583,7 @@ extcaps_init_initerfaces(capture_options *capture_opts) add_arg(EXTCAP_ARGUMENT_RUN_CAPTURE); add_arg(EXTCAP_ARGUMENT_INTERFACE); add_arg(interface_opts.name); - if (interface_opts.cfilter) { + if (strlen(interface_opts.cfilter) > 0) { add_arg(EXTCAP_ARGUMENT_CAPTURE_FILTER); add_arg(interface_opts.cfilter); } |