From: Ondrej Filip Date: Fri, 4 Jun 2004 19:21:19 +0000 (+0000) Subject: Bugfix in last patch. X-Git-Tag: v1.2.0~337 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=551e30886d7ed156d3fe98cc9562ffa2c22e4ce3;p=thirdparty%2Fbird.git Bugfix in last patch. --- diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index 3cc263cdf..cbab8382b 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);