Commit a5e7424d424f6398a198ead79d99e0a3c2f24ce8

Authored by David S. Miller
1 parent 115c9b8192

ipv4: ping: Fix recvmsg MSG_OOB error handling.

Don't return an uninitialized variable as the error, return
-EOPNOTSUPP instead.

Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -630,6 +630,7 @@
630 630  
631 631 pr_debug("ping_recvmsg(sk=%p,sk->num=%u)\n", isk, isk->inet_num);
632 632  
  633 + err = -EOPNOTSUPP;
633 634 if (flags & MSG_OOB)
634 635 goto out;
635 636