diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-03-29 10:15:23 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-03-29 10:15:23 +0000 |
commit | 0bcd0314deca0c03467340aba79d120dfa407ad0 (patch) | |
tree | 49db1a5e50d6bf56bac2a62a91ebe4054273a051 /sys/netinet/ipsec_input.c | |
parent | 17ce2dab02913d9aa6ceb520c771b4d3e1401eb2 (diff) |
Be consistent about packet properties.
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r-- | sys/netinet/ipsec_input.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index 8b911052d92..b607c74b8ff 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.22 2000/03/29 09:37:02 angelos Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.23 2000/03/29 10:15:22 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -553,8 +553,9 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff) if (sproto == IPPROTO_ESP) { - /* Packet is confidental */ - m->m_flags |= M_CONF; + /* Packet is confidential ? */ + if (tdbp->tdb_encalgxform) + m->m_flags |= M_CONF; /* Check if we had authenticated ESP */ if (tdbp->tdb_authalgxform) |