Commit 551e3088 authored by Ondřej Filip's avatar Ondřej Filip

Bugfix in last patch.

parent e7ef86a5
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment