0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Bugfix in last patch.

This commit is contained in:
Ondrej Filip 2004-06-04 19:21:19 +00:00
parent e7ef86a58c
commit 551e30886d

View File

@ -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);