summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2002-06-07 02:33:04 +0000
committeritojun <itojun@openbsd.org>2002-06-07 02:33:04 +0000
commitaac6100ca517e5a30b156cd330c3def53476f69e (patch)
tree48523c11029baeabfe665abaf20e8052bee673e5
parentSimplify gdt entry (diff)
downloadwireguard-openbsd-aac6100ca517e5a30b156cd330c3def53476f69e.tar.xz
wireguard-openbsd-aac6100ca517e5a30b156cd330c3def53476f69e.zip
cope with cases where maxmtu == 0 (shouldn't happen)
-rw-r--r--sys/netinet6/nd6.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/nd6.h b/sys/netinet6/nd6.h
index 859f378f668..1e46bbfc22a 100644
--- a/sys/netinet6/nd6.h
+++ b/sys/netinet6/nd6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.h,v 1.20 2002/06/05 01:12:54 itojun Exp $ */
+/* $OpenBSD: nd6.h,v 1.21 2002/06/07 02:33:04 itojun Exp $ */
/* $KAME: nd6.h,v 1.93 2002/06/05 00:56:22 itojun Exp $ */
/*
@@ -100,7 +100,7 @@ struct nd_ifinfo {
#define IN6_LINKMTU(ifp) \
((ND_IFINFO(ifp)->linkmtu && ND_IFINFO(ifp)->linkmtu < (ifp)->if_mtu) \
? ND_IFINFO(ifp)->linkmtu \
- : ((ND_IFINFO(ifp)->maxmtu < (ifp)->if_mtu) \
+ : ((ND_IFINFO(ifp)->maxmtu && ND_IFINFO(ifp)->maxmtu < (ifp)->if_mtu) \
? ND_IFINFO(ifp)->maxmtu : (ifp)->if_mtu))
#endif