Skip to content
Commit 864db232 authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by David S. Miller
Browse files

net: ipv6: check for validity before dereferencing cfg->fc_nlinfo.nlh



nlh is being checked for validtity two times when it is dereferenced in
this function. Check for validity again when updating the flags through
nlh pointer to make the dereferencing safe.

CC: <stable@vger.kernel.org>
Addresses-Coverity: ("NULL pointer dereference")
Signed-off-by: default avatarMuhammad Usama Anjum <musamaanjum@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2d1b50ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment