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:
Reto Schneider <reto.schneider@husqvarnagroup.com>
Loading
Please sign in to comment