]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: sizeof(pointer) -> sizeof(pointed-at)
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 12 Dec 2019 05:13:58 +0000 (00:13 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 16 Jan 2020 19:36:52 +0000 (14:36 -0500)
14 years old eh?

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

index 23ec7a14cde916febbaa6424d10a51f71eb81946..e80d826a3c8c470a714635bb60b584f80c87593f 100644 (file)
@@ -2319,7 +2319,7 @@ static struct stream *ospf_recv_packet(struct ospf *ospf, int fd,
                          safe_strerror(errno));
                return NULL;
        }
-       if ((unsigned int)ret < sizeof(iph)) /* ret must be > 0 now */
+       if ((unsigned int)ret < sizeof(struct ip))
        {
                flog_warn(
                        EC_OSPF_PACKET,