aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/dccp/diag.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/dccp/diag.c b/net/dccp/diag.c
index 652a1b67f727..b21f261da75e 100644
--- a/net/dccp/diag.c
+++ b/net/dccp/diag.c
@@ -32,8 +32,11 @@ static void dccp_get_info(struct sock *sk, struct tcp_info *info)
32 if (dp->dccps_hc_rx_ackvec != NULL) 32 if (dp->dccps_hc_rx_ackvec != NULL)
33 info->tcpi_options |= TCPI_OPT_SACK; 33 info->tcpi_options |= TCPI_OPT_SACK;
34 34
35 ccid_hc_rx_get_info(dp->dccps_hc_rx_ccid, sk, info); 35 if (dp->dccps_hc_rx_ccid != NULL)
36 ccid_hc_tx_get_info(dp->dccps_hc_tx_ccid, sk, info); 36 ccid_hc_rx_get_info(dp->dccps_hc_rx_ccid, sk, info);
37
38 if (dp->dccps_hc_tx_ccid != NULL)
39 ccid_hc_tx_get_info(dp->dccps_hc_tx_ccid, sk, info);
37} 40}
38 41
39static void dccp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, 42static void dccp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,