Commit b1576ab1 authored by Hannes Frederic Sowa's avatar Hannes Frederic Sowa Committed by Lorenzo Colitti
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.

[Cherry-pick of net-next cf970c00]

Bug: 28347599
Change-Id: If071c128e91b7869d0fd57a958490ec6e1f488f9
Signed-off-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ad7f4b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment