summaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_output.c
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2019-03-23 22:46:29 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2019-03-23 22:46:29 +0000
commit2ef5bd2f0c468a65e4929f3e05e8ea07c6d93b58 (patch)
tree30d0f4042f9417695716f003183bf5301e90dee3 /sys/netinet/sctp_output.c
parent0999766ddfa4602637fc7ffb0148dc0b33870533 (diff)
downloadsrc-test2-2ef5bd2f0c468a65e4929f3e05e8ea07c6d93b58.tar.gz
src-test2-2ef5bd2f0c468a65e4929f3e05e8ea07c6d93b58.zip
Notes
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r--sys/netinet/sctp_output.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index 0f496dd4e90b..1af76c3eaa64 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -13026,12 +13026,7 @@ sctp_lower_sosend(struct socket *so,
/* Calculate the maximum we can send */
inqueue_bytes = stcb->asoc.total_output_queue_size - (stcb->asoc.chunks_on_out_queue * SCTP_DATA_CHUNK_OVERHEAD(stcb));
if (SCTP_SB_LIMIT_SND(so) > inqueue_bytes) {
- if (non_blocking) {
- /* we already checked for non-blocking above. */
- max_len = sndlen;
- } else {
- max_len = SCTP_SB_LIMIT_SND(so) - inqueue_bytes;
- }
+ max_len = SCTP_SB_LIMIT_SND(so) - inqueue_bytes;
} else {
max_len = 0;
}