]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in last patch.
authorOndrej Filip <feela@network.cz>
Fri, 4 Jun 2004 19:21:19 +0000 (19:21 +0000)
committerOndrej Filip <feela@network.cz>
Fri, 4 Jun 2004 19:21:19 +0000 (19:21 +0000)
proto/ospf/dbdes.c

index 3cc263cdf3e7671c047552401255ca4186fcaa81..cbab8382ba70ea32eb9efc30feaeb845d4013027 100644 (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);