diff options
author | 2005-05-27 02:24:42 +0000 | |
---|---|---|
committer | 2005-05-27 02:24:42 +0000 | |
commit | fc8b60bbb2327bdda9886fcdc2294da4454f096f (patch) | |
tree | b106a447d3ab0367387386e647579bdc8c672665 | |
parent | no longer needed (diff) | |
download | wireguard-openbsd-fc8b60bbb2327bdda9886fcdc2294da4454f096f.tar.xz wireguard-openbsd-fc8b60bbb2327bdda9886fcdc2294da4454f096f.zip |
Nasty bug!
Found during the development of virtual link support.
Personally I spend 3 hours chasing this, and I didn't find it.
Claudio spend 2 hours and he found it, credit goes to him :-)
It is wise to put the payload you just created onto the wire, instead
of putting some freshly 0'ed bytes....
ok claudio@
-rw-r--r-- | usr.sbin/ospfd/lsack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/lsack.c b/usr.sbin/ospfd/lsack.c index bd9f485236c..eb4e798e8ad 100644 --- a/usr.sbin/ospfd/lsack.c +++ b/usr.sbin/ospfd/lsack.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsack.c,v 1.12 2005/05/26 23:42:18 claudio Exp $ */ +/* $OpenBSD: lsack.c,v 1.13 2005/05/27 02:24:42 norby Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -256,7 +256,7 @@ ls_ack_tx_timer(int fd, short event, void *arg) continue; if (!(nbr->state & NBR_STA_FLOOD)) continue; - send_ls_ack(iface, nbr->addr, ptr, ptr - buf); + send_ls_ack(iface, nbr->addr, buf, ptr - buf); } break; default: |