Skip to content
Commit 1946e047 authored by Adam Wojasinski's avatar Adam Wojasinski Committed by Benjamin Cabé
Browse files

net: lib: ptp: Fix potential NULL dereference in transport prot addr



Retreiving IP address from the networking interface assigned to
a PTP port could result in NULL dereference or undefined behaviour
when passing NULL to `memcpy()` function. Added check on addresses
returned from functions retreiving IP address from an interface.

Signed-off-by: default avatarAdam Wojasinski <awojasinski@baylibre.com>
parent 503721bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment