diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/udp_diag.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.c index 65063444a119..27910c133019 100644 --- a/net/ipv4/udp_diag.c +++ b/net/ipv4/udp_diag.c | |||
@@ -41,6 +41,7 @@ static int udp_dump_one(struct udp_table *tbl, struct sk_buff *in_skb, | |||
41 | req->id.idiag_src[0], req->id.idiag_sport, | 41 | req->id.idiag_src[0], req->id.idiag_sport, |
42 | req->id.idiag_dst[0], req->id.idiag_dport, | 42 | req->id.idiag_dst[0], req->id.idiag_dport, |
43 | req->id.idiag_if, tbl); | 43 | req->id.idiag_if, tbl); |
44 | #if IS_ENABLED(CONFIG_IPV6) | ||
44 | else if (req->sdiag_family == AF_INET6) | 45 | else if (req->sdiag_family == AF_INET6) |
45 | sk = __udp6_lib_lookup(&init_net, | 46 | sk = __udp6_lib_lookup(&init_net, |
46 | (struct in6_addr *)req->id.idiag_src, | 47 | (struct in6_addr *)req->id.idiag_src, |
@@ -48,6 +49,7 @@ static int udp_dump_one(struct udp_table *tbl, struct sk_buff *in_skb, | |||
48 | (struct in6_addr *)req->id.idiag_dst, | 49 | (struct in6_addr *)req->id.idiag_dst, |
49 | req->id.idiag_dport, | 50 | req->id.idiag_dport, |
50 | req->id.idiag_if, tbl); | 51 | req->id.idiag_if, tbl); |
52 | #endif | ||
51 | else | 53 | else |
52 | goto out_nosk; | 54 | goto out_nosk; |
53 | 55 | ||