|
@@ -3629,10 +3629,11 @@ sctp_disposition_t sctp_sf_do_asconf(struct net *net,
|
|
|
* described in [I-D.ietf-tsvwg-sctp-auth].
|
|
|
*/
|
|
|
if (!net->sctp.addip_noauth && !chunk->auth)
|
|
|
- return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands);
|
|
|
+ return sctp_sf_discard_chunk(net, ep, asoc, type, arg,
|
|
|
+ commands);
|
|
|
|
|
|
/* Make sure that the ASCONF ADDIP chunk has a valid length. */
|
|
|
- if (!sctp_chunk_length_valid(chunk, sizeof(sctp_addip_chunk_t)))
|
|
|
+ if (!sctp_chunk_length_valid(chunk, sizeof(struct sctp_addip_chunk)))
|
|
|
return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
|
|
|
commands);
|
|
|
|
|
@@ -3746,10 +3747,12 @@ sctp_disposition_t sctp_sf_do_asconf_ack(struct net *net,
|
|
|
* described in [I-D.ietf-tsvwg-sctp-auth].
|
|
|
*/
|
|
|
if (!net->sctp.addip_noauth && !asconf_ack->auth)
|
|
|
- return sctp_sf_discard_chunk(net, ep, asoc, type, arg, commands);
|
|
|
+ return sctp_sf_discard_chunk(net, ep, asoc, type, arg,
|
|
|
+ commands);
|
|
|
|
|
|
/* Make sure that the ADDIP chunk has a valid length. */
|
|
|
- if (!sctp_chunk_length_valid(asconf_ack, sizeof(sctp_addip_chunk_t)))
|
|
|
+ if (!sctp_chunk_length_valid(asconf_ack,
|
|
|
+ sizeof(struct sctp_addip_chunk)))
|
|
|
return sctp_sf_violation_chunklen(net, ep, asoc, type, arg,
|
|
|
commands);
|
|
|
|