From: Quentin Young Date: Thu, 12 Dec 2019 05:13:58 +0000 (-0500) Subject: ospfd: sizeof(pointer) -> sizeof(pointed-at) X-Git-Tag: base_7.3~82^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5405a012b4eefe61e2318f8170a7e4a8cf6f28d0;p=matthieu%2Ffrr.git ospfd: sizeof(pointer) -> sizeof(pointed-at) 14 years old eh? Signed-off-by: Quentin Young --- diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index 0d520f8b0a..2b1b29494a 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -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,