2003-06-26: Mikael Lonnroth <gml@advancevpn.com>

* ospf_packet.c: (ospf_ls_upd_send_queue_event) clean up list node
	  and unlock lsa if we break early. (eg packet size too large).
This commit is contained in:
paul 2003-06-26 03:00:40 +00:00
parent 4eeccf18f3
commit 8cb90ff71d

View File

@ -2708,7 +2708,12 @@ ospf_make_ls_upd (struct ospf_interface *oi, list update, struct stream *s)
/* Check packet size. */
if (length + delta + ntohs (lsa->data->length) > OSPF_PACKET_MAX (oi))
break;
{
/* clean up */
list_delete_node (update, node);
ospf_lsa_unlock (lsa);
break;
}
/* Keep pointer to LS age. */
lsah = (struct lsa_header *) (STREAM_DATA (s) + stream_get_putp (s));