aboutsummaryrefslogtreecommitdiffstats
path: root/tfshark.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-09-12 15:07:36 +0200
committerAnders Broman <a.broman58@gmail.com>2016-09-12 14:33:29 +0000
commite3247b3a71f1bdb89c40573412ab7b2181212a98 (patch)
tree1a18eeabe2552e8172728f04ac545f298114a831 /tfshark.c
parent159d4317dc5eff3a450bac44610f9023e96b50e5 (diff)
fix some compilation issues without extcap.
Change-Id: I18c855e13281013a6277c1f38eeac92e74d52b34 Reviewed-on: https://code.wireshark.org/review/17665 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'tfshark.c')
-rw-r--r--tfshark.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tfshark.c b/tfshark.c
index d2d7db5621..5b2fdaa338 100644
--- a/tfshark.c
+++ b/tfshark.c
@@ -867,7 +867,9 @@ main(int argc, char *argv[])
* $ ./tools/valgrind-wireshark -n
* much more useful. */
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
return 0;
case 'O': /* Only output these protocols */
/* already processed; just ignore it now */
@@ -995,7 +997,9 @@ main(int argc, char *argv[])
cmdarg_err("%s", err_msg);
g_free(err_msg);
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
return 2;
}
}
@@ -1006,7 +1010,9 @@ main(int argc, char *argv[])
cmdarg_err("%s", err_msg);
g_free(err_msg);
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
return 2;
}
}
@@ -1052,7 +1058,9 @@ main(int argc, char *argv[])
open_routine reader to use, then the following needs to change. */
if (cf_open(&cfile, cf_name, WTAP_TYPE_AUTO, FALSE, &err) != CF_OK) {
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
return 2;
}
@@ -1091,7 +1099,9 @@ main(int argc, char *argv[])
funnel_dump_all_text_windows();
epan_free(cfile.epan);
epan_cleanup();
+#ifdef HAVE_EXTCAP
extcap_cleanup();
+#endif
output_fields_free(output_fields);
output_fields = NULL;