summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-03-31 10:24:00 +0000
committerhenning <henning@openbsd.org>2004-03-31 10:24:00 +0000
commitf9a8dac30621ad41c9e285093e40bdeffeb91a89 (patch)
treebd2883563110b5caad8cc8f08284aa2b86abfa5c
parentin gettdbbysrcdst(), allow matching with either src or dst beeing a wildcard (diff)
downloadwireguard-openbsd-f9a8dac30621ad41c9e285093e40bdeffeb91a89.tar.xz
wireguard-openbsd-f9a8dac30621ad41c9e285093e40bdeffeb91a89.zip
in the tcp md5sig case allow empty (wildcard) src or dst
ok markus@
-rw-r--r--sys/net/pfkeyv2_parsemessage.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/pfkeyv2_parsemessage.c b/sys/net/pfkeyv2_parsemessage.c
index 762d1159f75..3b3d0a94dfb 100644
--- a/sys/net/pfkeyv2_parsemessage.c
+++ b/sys/net/pfkeyv2_parsemessage.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2_parsemessage.c,v 1.37 2003/12/02 23:16:29 markus Exp $ */
+/* $OpenBSD: pfkeyv2_parsemessage.c,v 1.38 2004/03/31 10:24:00 henning Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -599,6 +599,10 @@ pfkeyv2_parsemessage(void *p, int len, void **headers)
break;
#endif /* INET6 */
default:
+ if (sadb_msg->sadb_msg_satype ==
+ SADB_X_SATYPE_TCPSIGNATURE &&
+ sa->sa_family == 0)
+ break;
DPRINTF(("pfkeyv2_parsemessage: unknown "
"address family %d in ADDRESS extension "
"header %d\n",