diff options
-rw-r--r-- | sys/netinet/ip_ip4.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip_ip4.c b/sys/netinet/ip_ip4.c index c142d46aa84..af4eba0aee3 100644 --- a/sys/netinet/ip_ip4.c +++ b/sys/netinet/ip_ip4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ip4.c,v 1.25 1999/02/25 19:21:09 angelos Exp $ */ +/* $OpenBSD: ip_ip4.c,v 1.26 1999/04/04 21:33:49 deraadt Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -161,6 +161,10 @@ ip4_input(m, va_alist) m->m_pkthdr.len -= iphlen; m->m_data += iphlen; + /* tdbi is only set in esp or ah, if next protocol is udp or tcp */ + if (m->m_flags & (M_CONF|M_AUTH)) + m->m_pkthdr.tdbi = NULL; + /* * Interface pointer stays the same; if no IPsec processing has * been done (or will be done), this will point to a normal |