diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-04 19:21:19 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-04 19:21:19 +0000 |
commit | 551e30886d7ed156d3fe98cc9562ffa2c22e4ce3 (patch) | |
tree | 9359539162f3bb3f1aec8eb94de4b0cea5484ecb /proto/ospf/dbdes.c | |
parent | e7ef86a58cc5393ba764606b0ee6d760e6164f0c (diff) |
Bugfix in last patch.
Diffstat (limited to 'proto/ospf/dbdes.c')
-rw-r--r-- | proto/ospf/dbdes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index 3cc263cd..cbab8382 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); |