Skip to content

Commit

Permalink
click/icmp: bail out on OOM
Browse files Browse the repository at this point in the history
Change-Id: Ia7b9f3c4a4e7547d17251edac67c75f967507b3f
Reviewed-on: https://gerrit.ikarem.io/74139
Static-Analysis: Jenkins Build System <jenkins@meraki.com>
Tested-by: Jenkins Build System <jenkins@meraki.com>
Reviewed-by: Peter Hurley <peter@meraki.com>
Signed-off-by: Derrick Pallas <pallas@meraki.com>
  • Loading branch information
Derrick Pallas committed Nov 15, 2018
1 parent 7aec8b8 commit f2a3821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elements/icmp/icmpsendpings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ ICMPPingSource::make_packet(WritablePacket *q)
q->set_ip_header(nip, sizeof(click_ip));
q->timestamp_anno().assign_now();

if (_receiver)
if (p && _receiver)
_receiver->send_timestamp[icp->icmp_sequence] = q->timestamp_anno();

return q;
Expand Down

0 comments on commit f2a3821

Please sign in to comment.