Commit 0abf64f1 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Khalid Elmously

UBUNTU: SAUCE: net: ipv4: fix for a race condition in raw_sendmsg -- fix backport

Fix a miss-backport of the upstream commit.

Fixes: 63da13a9 ("net: ipv4: fix for a race condition in raw_sendmsg -- fix backport")
BugLink: http://bugs.launchpad.net/bugs/1748671Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Acked-by: default avatarKamal Mostafa <kamal@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 63fca73b
......@@ -621,7 +621,7 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
goto done;
}
if (hdrincl) {
if (!hdrincl) {
rfv.msg = msg;
rfv.hlen = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment