|
@@ -1918,8 +1918,10 @@ static int sctp_sendmsg_to_asoc(struct sctp_association *asoc,
|
|
goto err;
|
|
goto err;
|
|
}
|
|
}
|
|
|
|
|
|
- if (asoc->pmtu_pending)
|
|
|
|
- sctp_assoc_pending_pmtu(asoc);
|
|
|
|
|
|
+ if (asoc->pmtu_pending) {
|
|
|
|
+ sctp_assoc_sync_pmtu(asoc);
|
|
|
|
+ asoc->pmtu_pending = 0;
|
|
|
|
+ }
|
|
|
|
|
|
if (sctp_wspace(asoc) < msg_len)
|
|
if (sctp_wspace(asoc) < msg_len)
|
|
sctp_prsctp_prune(asoc, sinfo, msg_len - sctp_wspace(asoc));
|
|
sctp_prsctp_prune(asoc, sinfo, msg_len - sctp_wspace(asoc));
|