forked from osmocom/wireshark
Fix builds without libpcap.
capture_opts_cleanup() doesn't exist if we're building without libpcap, so don't call it if we're building without libpcap. Change-Id: I6c9defea15fac7df5533269c4945b965d9a67c25 Reviewed-on: https://code.wireshark.org/review/19924 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
93a5c83f0a
commit
14fba80f0f
2
tshark.c
2
tshark.c
|
@ -2189,7 +2189,9 @@ main(int argc, char *argv[])
|
||||||
output_fields = NULL;
|
output_fields = NULL;
|
||||||
|
|
||||||
clean_exit:
|
clean_exit:
|
||||||
|
#ifdef HAVE_LIBPCAP
|
||||||
capture_opts_cleanup(&global_capture_opts);
|
capture_opts_cleanup(&global_capture_opts);
|
||||||
|
#endif
|
||||||
return exit_status;
|
return exit_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -943,7 +943,9 @@ int main(int argc, char *qt_argv[])
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
clean_exit:
|
clean_exit:
|
||||||
|
#ifdef HAVE_LIBPCAP
|
||||||
capture_opts_cleanup(&global_capture_opts);
|
capture_opts_cleanup(&global_capture_opts);
|
||||||
|
#endif
|
||||||
return ret_val;
|
return ret_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue