aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 4c7e95fa090d..5da703e699da 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -722,8 +722,11 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
722 .dport = dport } } }; 722 .dport = dport } } };
723 security_sk_classify_flow(sk, &fl); 723 security_sk_classify_flow(sk, &fl);
724 err = ip_route_output_flow(&rt, &fl, sk, 1); 724 err = ip_route_output_flow(&rt, &fl, sk, 1);
725 if (err) 725 if (err) {
726 if (err == -ENETUNREACH)
727 IP_INC_STATS_BH(IPSTATS_MIB_OUTNOROUTES);
726 goto out; 728 goto out;
729 }
727 730
728 err = -EACCES; 731 err = -EACCES;
729 if ((rt->rt_flags & RTCF_BROADCAST) && 732 if ((rt->rt_flags & RTCF_BROADCAST) &&