Skip to content

Commit

Permalink
ospfd: sizeof(pointer) -> sizeof(pointed-at)
Browse files Browse the repository at this point in the history
14 years old eh?

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
  • Loading branch information
qlyoung committed Dec 12, 2019
1 parent 01e3c37 commit 5405a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ospfd/ospf_packet.c
Expand Up @@ -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,
Expand Down

0 comments on commit 5405a01

Please sign in to comment.