diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-25 17:16:28 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-25 17:16:28 +0000 |
commit | c8fea6f2d455ebb4f7324f4dc5e46a4ad5c8f340 (patch) | |
tree | e8e94b192ad95f4960a32668a60d431a1407700f /sys/netinet | |
parent | ae1a53ac1bc7eb3771ce5cc5cfccd8326b33ba3f (diff) |
If a PENDING_TDB tag is attached but no TDB is found, drop the packet.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index d4a9ee817e1..daef0dfeb88 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.125 2001/06/25 06:14:05 angelos Exp $ */ +/* $OpenBSD: ip_output.c,v 1.126 2001/06/25 17:16:23 angelos Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -287,6 +287,8 @@ ip_output(m0, va_alist) #endif tdbi = (struct tdb_ident *)(mtag + 1); tdb = gettdb(tdbi->spi, &tdbi->dst, tdbi->proto); + if (tdb == NULL) + error = -EINVAL; m_tag_delete(m, mtag); } else |