Skip to content
Commit 9b2312d0 authored by Reto Schneider's avatar Reto Schneider Committed by Anas Nashif
Browse files

net: buf: Fix cloning of zero-sized buffers



For zero sized buffers, instead of pointing to a buffer, net_buf->__buf
is NULL. For this reason, when cloning a buffer, the code needs to check
__buf before dereferencing it.

Signed-off-by: default avatarReto Schneider <reto.schneider@husqvarnagroup.com>
parent 0c7325e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment