Commit cd998f94 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.

[Backport of net-next cf970c00]

Bug: 12780426
Change-Id: I29d9cb95ef05ec76d37517e01317f4a29e60931c
Signed-off-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarLorenzo Colitti <lorenzo@google.com>
parent 06a8b59a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment