diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-12-12 00:13:58 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-12-12 01:03:18 -0500 |
| commit | 5405a012b4eefe61e2318f8170a7e4a8cf6f28d0 (patch) | |
| tree | 89c5ee3a4300f3d8f2b6c12536c52605f601bd1b /ospfd/ospf_packet.c | |
| parent | 01e3c3764deda6af62af1baa13b195af7672947e (diff) | |
ospfd: sizeof(pointer) -> sizeof(pointed-at)
14 years old eh?
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_packet.c')
| -rw-r--r-- | ospfd/ospf_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
