summaryrefslogtreecommitdiff
path: root/dumpcap.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2016-08-01 11:09:16 +0200
committerMichael Mann <mmann78@netscape.net>2016-08-01 13:27:36 +0000
commit8166ab7c824ed254654b3e9f8d98331edd31bc0a (patch)
tree3077fc4eb78b21ae83dd08b6b6638f089b284373 /dumpcap.c
parent50b56c8cde22de98801c50cc5f668708a1f51a0d (diff)
downloadwireshark-8166ab7c824ed254654b3e9f8d98331edd31bc0a.tar.gz
Make dumpcap build without extcap
Change-Id: I70c7bc270946d104218afc4d9c8ac888471f6524 Reviewed-on: https://code.wireshark.org/review/16821 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 935e52d9ca..fd87c14435 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1687,10 +1687,11 @@ cap_pipe_open_live(char *pipename,
b = cap_pipe_read(fd, ((char *)&magic)+bytes_read,
sizeof magic-bytes_read,
pcap_opts->from_cap_socket);
+#ifdef HAVE_EXTCAP
/* jump messaging, if extcap had an error, stderr will provide the correct message */
if (extcap_pipe && b <= 0)
goto error;
-
+#endif
if (b <= 0) {
if (b == 0)
g_snprintf(errmsg, errmsgl, "End of file on pipe magic during open.");