Check get packet template allocation failure (VPP-1321) 31/13131/3
authorJohn Lo <loj@cisco.com>
Tue, 19 Jun 2018 19:27:48 +0000 (15:27 -0400)
committerDave Barach <openvpp@barachs.net>
Tue, 19 Jun 2018 21:26:10 +0000 (21:26 +0000)
commit084606befb45507e9241b5555f86196fe08530f6
tree25982dd871832335b2f62159657c3b3b31e361f2
parent7e607a73898b81c21a24038a2350fdda3b1c67ff
Check get packet template allocation failure (VPP-1321)

After calling vlib_packet_template_get_packet(), make sure
packet buffer is allocated before using it.

Change-Id: Idb5199f4e2c9596137b2101e502d611f474a6ffe
Signed-off-by: John Lo <loj@cisco.com>
src/plugins/cdp/cdp_periodic.c
src/vnet/ethernet/arp.c
src/vnet/ip/ip4_forward.c
src/vnet/ip/ip6_forward.c
src/vnet/ip/ip6_neighbor.c