From: itojun Date: Tue, 18 Jan 2000 05:25:06 +0000 (+0000) Subject: weaken buggy getaddrinfo check. X-Git-Tag: tcpdump-3.5.1~403 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/767a8851f3f1a8dd7f0f9624b050b7ce543a69ff weaken buggy getaddrinfo check. --- diff --git a/configure.in b/configure.in index 1f517837..2323daf0 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl @(#) $Header: /tcpdump/master/tcpdump/configure.in,v 1.100 2000-01-18 03:46:49 fenner Exp $ (LBL) +dnl @(#) $Header: /tcpdump/master/tcpdump/configure.in,v 1.101 2000-01-18 05:25:06 itojun Exp $ (LBL) dnl dnl Copyright (c) 1994, 1995, 1996, 1997 dnl The Regents of the University of California. All rights reserved. @@ -6,7 +6,7 @@ dnl dnl Process this file with autoconf to produce a configure script. dnl -AC_REVISION($Revision: 1.100 $) +AC_REVISION($Revision: 1.101 $) AC_PREREQ(2.13) AC_INIT(tcpdump.c) @@ -295,9 +295,14 @@ main() } } - if (inet6 != 2 || inet4 != 2) - goto bad; + /* supported family should be 2, unsupported family should be 0 */ + if (inet4 == 0 || inet4 == 2) + goto good; + if (inet6 == 0 || inet6 == 2) + goto good; + goto bad; + good: if (aitop) freeaddrinfo(aitop); exit(0);