diff options
Diffstat (limited to 'net/mptcp/diag.c')
-rw-r--r-- | net/mptcp/diag.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mptcp/diag.c b/net/mptcp/diag.c index 6ff6f14674aa..3ae46b545d2c 100644 --- a/net/mptcp/diag.c +++ b/net/mptcp/diag.c @@ -10,7 +10,6 @@ #include <linux/net.h> #include <linux/inet_diag.h> #include <net/netlink.h> -#include <uapi/linux/mptcp.h> #include "protocol.h" static int subflow_get_info(struct sock *sk, struct sk_buff *skb) @@ -21,6 +20,9 @@ static int subflow_get_info(struct sock *sk, struct sk_buff *skb) bool slow; int err; + if (inet_sk_state_load(sk) == TCP_LISTEN) + return 0; + start = nla_nest_start_noflag(skb, INET_ULP_INFO_MPTCP); if (!start) return -EMSGSIZE; |