Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4910ac6c authored by David S. Miller's avatar David S. Miller
Browse files

ipv4: Don't ip_rt_put() an error pointer in RAW sockets.

parent 673e63c6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -569,6 +569,7 @@ static int raw_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
		rt = ip_route_output_flow(sock_net(sk), &fl4, sk);
		if (IS_ERR(rt)) {
			err = PTR_ERR(rt);
			rt = NULL;
			goto done;
		}
	}