diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-10-17 07:31:45 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-10-17 07:31:45 +0000 |
commit | 581e45a617ffe967bda64749c6f9ddc703192baa (patch) | |
tree | 02cd63228004b6d44e9eb669ed3dd369f2727424 /sbin/ipsecctl/pfkey.c | |
parent | 020b3b581397f0d1fcdd8a656e46560a0d05bff8 (diff) |
parse correctly flows using ipcomp. Glitch noticed by jared rr spiegel.
Diffstat (limited to 'sbin/ipsecctl/pfkey.c')
-rw-r--r-- | sbin/ipsecctl/pfkey.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ipsecctl/pfkey.c b/sbin/ipsecctl/pfkey.c index c3c722c0e98..13b3a650af5 100644 --- a/sbin/ipsecctl/pfkey.c +++ b/sbin/ipsecctl/pfkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkey.c,v 1.24 2005/10/16 19:52:19 hshoexer Exp $ */ +/* $OpenBSD: pfkey.c,v 1.25 2005/10/17 07:31:44 hshoexer Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Markus Friedl <markus@openbsd.org> @@ -563,6 +563,8 @@ pfkey_parse(struct sadb_msg *msg, struct ipsec_rule *rule) rule->proto = IPSEC_AH; break; case SADB_X_SATYPE_IPCOMP: + rule->proto = IPSEC_COMP; + break; default: return (1); } |