diff options
| author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2014-05-19 10:42:35 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-06-09 14:32:42 -0700 |
| commit | 6307901dd8031a24e34585c3590f951cebd9dee2 (patch) | |
| tree | 577718095e9d22abfa574ad16fa3fd938d6d03b9 /net/unix/af_unix.c | |
| parent | e55979bf7bb43bd9bfae85ad0990b86193ce12c5 (diff) | |
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: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David 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: Avijit Kanti Das <avijitnsec@codeaurora.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
