diff options
author | Dave Barach <dave@barachs.net> | 2020-04-08 08:14:57 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2020-04-13 14:57:22 +0000 |
commit | d55f62f78888315c6caa58c9c7638c8109bb37cd (patch) | |
tree | 619b0cb725091ab6da8370e7063c5596a549d3b7 /src/vpp-api | |
parent | 8c6efc06104ebccf4915d0d10c399292bac55874 (diff) |
misc: check return values from vlib_buffer_copy(...)
vlib_buffer_copy(...) returns NULL if the system is temporarily out of
buffers.
This is NOT correct. Please don't be this person:
c0 = vlib_buffer_copy (vm, p0);
ci0 = vlib_get_buffer_index (vm, c0);
Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ic25ef58965871ea5d2b40904df9506803f69e47e
(cherry picked from commit 954c707972bf7efcd227e26d9679544813a78115)
Diffstat (limited to 'src/vpp-api')
0 files changed, 0 insertions, 0 deletions