]> git.proxmox.com Git - mirror_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, 12 Dec 2019 06:03:18 +0000 (01:03 -0500)
14 years old eh?

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

index 0d520f8b0a6746534399a764544ba079b1ec8af3..2b1b29494a8271db1de440f4c62a49ecb08ac93e 100644 (file)
@@ -2318,7 +2318,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,