aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ptunnel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ptunnel.c b/src/ptunnel.c
index 5089eca..d70edce 100644
--- a/src/ptunnel.c
+++ b/src/ptunnel.c
@@ -165,8 +165,13 @@ int main(int argc, char *argv[]) {
pt_random();
if (opts.list_pcap_devices) {
+#ifdef HAVE_PCAP
print_pcap_devices();
return 0;
+#else
+ pt_log(kLog_error, "Pcap not available!\n");
+ return 1;
+#endif
}
#ifdef HAVE_PCAP