From e3247b3a71f1bdb89c40573412ab7b2181212a98 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Mon, 12 Sep 2016 15:07:36 +0200 Subject: fix some compilation issues without extcap. Change-Id: I18c855e13281013a6277c1f38eeac92e74d52b34 Reviewed-on: https://code.wireshark.org/review/17665 Petri-Dish: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- rawshark.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rawshark.c') diff --git a/rawshark.c b/rawshark.c index 510ed80bcf..d4acc8af94 100644 --- a/rawshark.c +++ b/rawshark.c @@ -803,7 +803,9 @@ main(int argc, char *argv[]) g_free(err_msg); epan_free(cfile.epan); epan_cleanup(); +#ifdef HAVE_EXTCAP extcap_cleanup(); +#endif exit(2); } n_rfcodes++; @@ -825,7 +827,9 @@ main(int argc, char *argv[]) if (raw_cf_open(&cfile, pipe_name) != CF_OK) { epan_free(cfile.epan); epan_cleanup(); +#ifdef HAVE_EXTCAP extcap_cleanup(); +#endif exit(2); } @@ -847,7 +851,9 @@ main(int argc, char *argv[]) if (!load_cap_file(&cfile)) { epan_free(cfile.epan); epan_cleanup(); +#ifdef HAVE_EXTCAP extcap_cleanup(); +#endif exit(2); } } else { @@ -858,8 +864,9 @@ main(int argc, char *argv[]) epan_free(cfile.epan); epan_cleanup(); +#ifdef HAVE_EXTCAP extcap_cleanup(); - +#endif return 0; } -- cgit v1.2.1