app/test: fix crash after mbuf allocation failure
authorTetsuya Mukawa <mukawa@igel.co.jp>
Fri, 12 Jun 2015 02:54:00 +0000 (11:54 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 22 Jun 2015 21:05:51 +0000 (23:05 +0200)
commitaa61307afcbd5df7b960dec18b321181680a4232
tree9286cb7405624c0703651d4caff887f412a67b39
parentc91b871b8e3377f7b6c63780c3230d37368a39e6
app/test: fix crash after mbuf allocation failure

The patch fixes potential null pointer accesses in test_mbuf.
If 'm[i]' is null, stop accessing it.

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
app/test/test_mbuf.c