Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6307901d authored by Hannes Frederic Sowa's avatar Hannes Frederic Sowa Committed by Gerrit - the friendly Code Review server
Browse files

ping: prevent NULL pointer dereference on write to msg_name



A plain read() on a socket does set msg->msg_name to NULL. So check for
NULL pointer first.

Change-Id: Ic2484208247f4a5b829f48b32d038983b05e9fc4
Signed-off-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Git-commit: cf970c002d270c36202bd5b9c2804d3097a52da0
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarAvijit Kanti Das <avijitnsec@codeaurora.org>
parent e55979bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment