From: angelos Date: Wed, 29 Mar 2000 10:15:22 +0000 (+0000) Subject: Be consistent about packet properties. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3b83f806a20873d859e329e4f9bf712e6e43f895;p=openbsd Be consistent about packet properties. --- 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)