Skip to content
Commit f3c66e52 authored by Michael Scott's avatar Michael Scott Committed by Jukka Rissanen
Browse files

net: ipv6: fix NULL reference in handle_ra_neighbor



lladdr.addr doesn't point to any storage value when it's
handed off to the net_nbuf_read function.  This results
in a write to an undefined area of memory.

Fix this by pointing lladdr.addr to a net_linkaddr_storage
structure's byte storage array which can handle the maximum
specified length.

Change-Id: I05e0a0420b262ba1e5ac95cebe1f0d91f54878ce
Signed-off-by: default avatarMichael Scott <michael.scott@linaro.org>
parent 7b674cb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment