diff options
-rw-r--r-- | ospfd/ospf_packet.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index 7bd48223..9e4be062 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -2709,12 +2709,7 @@ 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)) - { - /* clean up */ - list_delete_node (update, node); - ospf_lsa_unlock (lsa); - break; - } + break; /* Keep pointer to LS age. */ lsah = (struct lsa_header *) (STREAM_DATA (s) + stream_get_putp (s)); |