Commit 4910ac6c526d2868adcb5893e0c428473de862b5

Authored by David S. Miller
1 parent 673e63c688

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

Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

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

... ... @@ -569,6 +569,7 @@
569 569 rt = ip_route_output_flow(sock_net(sk), &fl4, sk);
570 570 if (IS_ERR(rt)) {
571 571 err = PTR_ERR(rt);
  572 + rt = NULL;
572 573 goto done;
573 574 }
574 575 }