]> The Tcpdump Group git mirrors - tcpdump/commitdiff
weaken buggy getaddrinfo check.
authoritojun <itojun>
Tue, 18 Jan 2000 05:25:06 +0000 (05:25 +0000)
committeritojun <itojun>
Tue, 18 Jan 2000 05:25:06 +0000 (05:25 +0000)
configure.in

index 1f517837df18a2b7aa5f2ba19dc5a3bea6f97d16..2323daf0db976dbad6e9d01106a1a5b754460452 100644 (file)
@@ -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);