diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2018-04-28 08:13:43 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2018-04-28 08:13:43 +0000 |
commit | 4dc2da53583e35002b7f5ccc9e5f0cdb18d0e8d1 (patch) | |
tree | c5e231b2e8a14a924bd1be6c7250a780b497c56b /sys | |
parent | ef6a5f5f1e4fda3a61ebaa799c9a76a738ce7b2b (diff) |
don't check if we still have the BFD flag set when sending a packet, as we
might be shutting the session down
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/bfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bfd.c b/sys/net/bfd.c index c5ea362083e..93d973252e2 100644 --- a/sys/net/bfd.c +++ b/sys/net/bfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bfd.c,v 1.68 2018/04/28 07:46:56 phessler Exp $ */ +/* $OpenBSD: bfd.c,v 1.69 2018/04/28 08:13:42 phessler Exp $ */ /* * Copyright (c) 2016 Peter Hessler <phessler@openbsd.org> @@ -1006,7 +1006,7 @@ bfd_send(struct bfd_config *bfd, struct mbuf *m) { struct rtentry *rt = bfd->bc_rt; - if (!rtisvalid(rt) || !ISSET(rt->rt_flags, RTF_BFD)) { + if (!rtisvalid(rt)) { m_freem(m); return (EHOSTDOWN); } |