diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-31 10:24:01 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-31 10:24:01 +0000 |
commit | 6e036df6f1c2eb85424316eaae4772f502918cad (patch) | |
tree | d0a753eb4d4db41cc58e6762ec784d2459b4f06d /sys/net | |
parent | 5b91a82ae75dd301b6b6aafd99b22250208edd09 (diff) |
in the tcp md5sig case allow empty (wildcard) src or dst
ok markus@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pfkeyv2_parsemessage.c | 6 |
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", |