Skip to content
Commit 7cfd5a41 authored by Leandro Pereira's avatar Leandro Pereira Committed by Maureen Helm
Browse files

samples: net: hrpl_border_router: Fix NULL pointer dereference



Null-checking `pkt` before making a call to net_pkt_unref() suggests
that it might be NULL, but the pointer is dereferenced before it's
checked.  Perform the check at the beginning of the function and
dereference and drop its reference unconditionally afterwards.

Coverity-ID: 178789
Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent b7ad50b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment