summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netsniff-ng.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index eabd942..03fab61 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -1419,8 +1419,7 @@ int main(int argc, char **argv)
set_sched_status(SCHED_FIFO, sched_get_priority_max(SCHED_FIFO));
}
- if (ctx.device_in && (device_mtu(ctx.device_in) ||
- !strncmp("any", ctx.device_in, strlen(ctx.device_in)))) {
+ if (device_mtu(ctx.device_in) || !strncmp("any", ctx.device_in, strlen(ctx.device_in))) {
if (!ctx.rfraw)
ctx.link_type = pcap_devtype_to_linktype(ctx.device_in);
if (!ctx.device_out) {