diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2016-09-18 21:00:56 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2016-09-18 21:00:56 +0000 |
commit | 283cdefa5c9cf922222c8a47f07fa584d9221d70 (patch) | |
tree | 10e0b4b56ebc8962f9ea62a36dd2863bfc3721ab /sys/net/bfd.c | |
parent | b898623a42ccc9dc343e1c7e083825904e354a36 (diff) |
apply the canary to the correct variable
Diffstat (limited to 'sys/net/bfd.c')
-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 1301b67d616..8bee4b9251a 100644 --- a/sys/net/bfd.c +++ b/sys/net/bfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bfd.c,v 1.27 2016/09/17 07:35:05 phessler Exp $ */ +/* $OpenBSD: bfd.c,v 1.28 2016/09/18 21:00:55 phessler Exp $ */ /* * Copyright (c) 2016 Peter Hessler <phessler@openbsd.org> @@ -885,7 +885,7 @@ bfd_send_control(void *x) m->m_len = m->m_pkthdr.len = sizeof(*bfd); h = mtod(m, struct bfd_header *); - memset(bfd, 0xff, sizeof(*h)); /* canary */ + memset(h, 0xff, sizeof(*h)); /* canary */ h->bfd_ver_diag = ((BFD_VERSION << 5) | (bfd->bc_neighbor->bn_ldiag)); h->bfd_sta_flags = (bfd->bc_neighbor->bn_lstate << 6); |