summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-04 21:21:19 +0200
committerOndrej Filip <feela@network.cz>2004-06-04 21:21:19 +0200
commit551e30886d7ed156d3fe98cc9562ffa2c22e4ce3 (patch)
tree9359539162f3bb3f1aec8eb94de4b0cea5484ecb
parente7ef86a58cc5393ba764606b0ee6d760e6164f0c (diff)
downloadbird-551e30886d7ed156d3fe98cc9562ffa2c22e4ce3.tar
bird-551e30886d7ed156d3fe98cc9562ffa2c22e4ce3.zip
Bugfix in last patch.
-rw-r--r--proto/ospf/dbdes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c
index 3cc263c..cbab838 100644
--- a/proto/ospf/dbdes.c
+++ b/proto/ospf/dbdes.c
@@ -117,12 +117,13 @@ ospf_dbdes_send(struct ospf_neighbor *n)
case NEIGHBOR_LOADING:
case NEIGHBOR_FULL:
- length = ntohs(((struct ospf_packet *)n)->length);
+ length = ntohs(((struct ospf_packet *)n->ldbdes)->length);
if(!length)
{
OSPF_TRACE(D_PACKETS, "No packet in my buffer for repeating");
ospf_neigh_sm(n, INM_KILLNBR);
+ return;
}
memcpy(ifa->ip_sk->tbuf, n->ldbdes, length);