Commit 9d6498b1 authored by Jorge Hernandez-Herrero's avatar Jorge Hernandez-Herrero Committed by Sridhar Samudrala

[SCTP] Fix to not start a new association on a 1-many style sendmsg()

with MSG_EOF/MSG_ABORT flag and no data.
parent f5dfceb1
......@@ -1164,6 +1164,11 @@ SCTP_STATIC int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
if (!asoc) {
SCTP_DEBUG_PRINTK("There is no association yet.\n");
if (sinfo_flags & (MSG_EOF | MSG_ABORT)) {
err = -EINVAL;
goto out_unlock;
}
/* Check for invalid stream against the stream counts,
* either the default or the user specified stream counts.
*/
......
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