aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sctp/chunk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c
index bd0bdd0ba8f1..7bd5ed4a8657 100644
--- a/net/sctp/chunk.c
+++ b/net/sctp/chunk.c
@@ -195,9 +195,9 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc,
195 /* This is the biggest possible DATA chunk that can fit into 195 /* This is the biggest possible DATA chunk that can fit into
196 * the packet 196 * the packet
197 */ 197 */
198 max_data = asoc->pathmtu - 198 max_data = (asoc->pathmtu -
199 sctp_sk(asoc->base.sk)->pf->af->net_header_len - 199 sctp_sk(asoc->base.sk)->pf->af->net_header_len -
200 sizeof(struct sctphdr) - sizeof(struct sctp_data_chunk); 200 sizeof(struct sctphdr) - sizeof(struct sctp_data_chunk)) & ~3;
201 201
202 max = asoc->frag_point; 202 max = asoc->frag_point;
203 /* If the the peer requested that we authenticate DATA chunks 203 /* If the the peer requested that we authenticate DATA chunks