X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/5c85fdf69d14b7c95cba3c69c7964583293be6ae..ad7c6f503c0c77b35ee6bd42e68f2c657ebae5ba:/pcap-linux.c diff --git a/pcap-linux.c b/pcap-linux.c index d48fb8c3..2d68539c 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -2290,8 +2290,7 @@ add_linux_if(pcap_if_list_t *devlistp, const char *ifname, int fd, char *errbuf) * Add an entry for this interface, with no addresses, if it's * not already in the list. */ - if (find_or_add_dev(devlistp, name, - if_flags_to_pcap_flags(name, ifrflags.ifr_flags), NULL, + if (find_or_add_dev(devlistp, name, ifrflags.ifr_flags, NULL, errbuf) == NULL) { /* * Failure.