mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
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:
parent
4eeccf18f3
commit
8cb90ff71d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user