|
@@ -2665,8 +2665,7 @@ sctp_disposition_t sctp_sf_do_9_2_shutdown(struct net *net,
|
|
|
return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
|
|
|
|
|
|
/* Make sure that the SHUTDOWN chunk has a valid length. */
|
|
|
- if (!sctp_chunk_length_valid(chunk,
|
|
|
- sizeof(struct sctp_shutdown_chunk_t)))
|
|
|
+ if (!sctp_chunk_length_valid(chunk, sizeof(struct sctp_shutdown_chunk)))
|
|
|
return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
|
|
|
commands);
|
|
|
|
|
@@ -2753,8 +2752,7 @@ sctp_disposition_t sctp_sf_do_9_2_shut_ctsn(struct net *net,
|
|
|
return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
|
|
|
|
|
|
/* Make sure that the SHUTDOWN chunk has a valid length. */
|
|
|
- if (!sctp_chunk_length_valid(chunk,
|
|
|
- sizeof(struct sctp_shutdown_chunk_t)))
|
|
|
+ if (!sctp_chunk_length_valid(chunk, sizeof(struct sctp_shutdown_chunk)))
|
|
|
return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
|
|
|
commands);
|
|
|
|
|
@@ -5419,12 +5417,14 @@ sctp_disposition_t sctp_sf_do_9_2_shutdown_ack(
|
|
|
*/
|
|
|
if (chunk) {
|
|
|
if (!sctp_vtag_verify(chunk, asoc))
|
|
|
- return sctp_sf_pdiscard(net, ep, asoc, type, arg, commands);
|
|
|
+ return sctp_sf_pdiscard(net, ep, asoc, type, arg,
|
|
|
+ commands);
|
|
|
|
|
|
/* Make sure that the SHUTDOWN chunk has a valid length. */
|
|
|
- if (!sctp_chunk_length_valid(chunk, sizeof(struct sctp_shutdown_chunk_t)))
|
|
|
- return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
|
|
|
- commands);
|
|
|
+ if (!sctp_chunk_length_valid(
|
|
|
+ chunk, sizeof(struct sctp_shutdown_chunk)))
|
|
|
+ return sctp_sf_violation_chunklen(net, ep, asoc, type,
|
|
|
+ arg, commands);
|
|
|
}
|
|
|
|
|
|
/* If it has no more outstanding DATA chunks, the SHUTDOWN receiver
|