]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: fix misplaced trust in ip header length
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 12 Dec 2019 05:09:39 +0000 (00:09 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 12 Dec 2019 06:03:13 +0000 (01:03 -0500)
commit01e3c3764deda6af62af1baa13b195af7672947e
treefa6bf9c1d8b03f9ac555d7ba95c55cf637a71c9a
parent2003a265bb8b62ac0c4b12d1fbee9007524cd93b
ospfd: fix misplaced trust in ip header length

We actually don't validate the IHL field, although it certainly looks
like we do at a casual glance.

This patch saves us from an assert in case we actually do get an IP
packet with an incorrect header length field.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
ospfd/ospf_packet.c