X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fdccp%2Fprobe.c;h=37731da4148164adc741da891a86b27e2484187d;hb=03347e2592078a90df818670fddf97a33eec70fb;hp=49ba8d5ec4b5285ecaaef6fe5e98586fcd1cef07;hpb=21454aaad30651ba0dcc16fe5271bc12ee21f132;p=karo-tx-linux.git 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, ...) static int jdccp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t size) { - const struct dccp_minisock *dmsk = dccp_msk(sk); const struct inet_sock *inet = inet_sk(sk); - const struct ccid3_hc_tx_sock *hctx; + struct ccid3_hc_tx_sock *hctx = NULL; - if (dmsk->dccpms_tx_ccid == DCCPC_CCID3) + if (ccid_get_current_tx_ccid(dccp_sk(sk)) == DCCPC_CCID3) hctx = ccid3_hc_tx_sk(sk); - else - hctx = NULL; if (port == 0 || ntohs(inet->dport) == port || ntohs(inet->sport) == port) {