summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorEsben Norby <norby@cvs.openbsd.org>2005-05-27 02:24:43 +0000
committerEsben Norby <norby@cvs.openbsd.org>2005-05-27 02:24:43 +0000
commitfc67fc4be243585c0ebd720242915ab9c2e48028 (patch)
treeb576724ef32a1bca94d40a993e595d02d3402f08 /usr.sbin
parent3d8f0d205e83ee9d8158fa42dbd564494e4c7104 (diff)
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@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospfd/lsack.c4
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: