From 39ef24ccc4d3ee4f5805ca58dd9e1ed28ea92780 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 16 Jan 2012 19:41:22 +0100 Subject: [PATCH] Fix pcap -i mode. --- src/suricata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/suricata.c b/src/suricata.c index 252068cb5b..40e8df9845 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -945,7 +945,7 @@ int main(int argc, char **argv) if (strcmp(pcap_dev, optarg) != 0) { SCLogInfo("translated %s to pcap device %s", optarg, pcap_dev); - } else { + } else if (strlen(pcap_dev) > 0 && isdigit(pcap_dev[0])) { SCLogError(SC_ERR_PCAP_TRANSLATE, "failed to find a pcap device for IP %s", optarg); exit(EXIT_FAILURE); }