Commit 2205a6ea authored by Jiri Bohac's avatar Jiri Bohac Committed by David S. Miller
Browse files

sctp: fix reporting of unknown parameters

commit 5fa782c2

 re-worked the
handling of unknown parameters. sctp_init_cause_fixed() can now
return -ENOSPC if there is not enough tailroom in the error
chunk skb. When this happens, the error header is not appended to
the error chunk. In that case, the payload of the unknown parameter
should not be appended either.
Signed-off-by: default avatarJiri Bohac <>
Acked-by: default avatarVlad Yasevich <>
Signed-off-by: default avatarDavid S. Miller <>
parent 226111d1
......@@ -2029,8 +2029,8 @@ static sctp_ierror_t sctp_process_unk_param(const struct sctp_association *asoc,
*errp = sctp_make_op_error_fixed(asoc, chunk);
if (*errp) {
sctp_init_cause_fixed(*errp, SCTP_ERROR_UNKNOWN_PARAM,
if (!sctp_init_cause_fixed(*errp, SCTP_ERROR_UNKNOWN_PARAM,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment