diff options
Diffstat (limited to 'net/dccp/probe.c')
-rw-r--r-- | net/dccp/probe.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/dccp/probe.c b/net/dccp/probe.c index 49ba8d5ec4b5..37731da41481 100644 --- a/net/dccp/probe.c +++ b/net/dccp/probe.c | |||
@@ -74,14 +74,11 @@ static void printl(const char *fmt, ...) | |||
74 | static int jdccp_sendmsg(struct kiocb *iocb, struct sock *sk, | 74 | static int jdccp_sendmsg(struct kiocb *iocb, struct sock *sk, |
75 | struct msghdr *msg, size_t size) | 75 | struct msghdr *msg, size_t size) |
76 | { | 76 | { |
77 | const struct dccp_minisock *dmsk = dccp_msk(sk); | ||
78 | const struct inet_sock *inet = inet_sk(sk); | 77 | const struct inet_sock *inet = inet_sk(sk); |
79 | const struct ccid3_hc_tx_sock *hctx; | 78 | struct ccid3_hc_tx_sock *hctx = NULL; |
80 | 79 | ||
81 | if (dmsk->dccpms_tx_ccid == DCCPC_CCID3) | 80 | if (ccid_get_current_tx_ccid(dccp_sk(sk)) == DCCPC_CCID3) |
82 | hctx = ccid3_hc_tx_sk(sk); | 81 | hctx = ccid3_hc_tx_sk(sk); |
83 | else | ||
84 | hctx = NULL; | ||
85 | 82 | ||
86 | if (port == 0 || ntohs(inet->dport) == port || | 83 | if (port == 0 || ntohs(inet->dport) == port || |
87 | ntohs(inet->sport) == port) { | 84 | ntohs(inet->sport) == port) { |