Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0eca8fee authored by Vlad Yasevich's avatar Vlad Yasevich
Browse files

[SCTP]: Do not increase rwnd when reading partial notification.



When a user reads a partial notification message, do not
update rwnd since notifications must not be counted towards
receive window.

Tested-by: default avatarOliver Roll <mail@oliroll.de>
Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
parent 60c778b2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1911,6 +1911,7 @@ SCTP_STATIC int sctp_recvmsg(struct kiocb *iocb, struct sock *sk,
		 * rwnd by that amount. If all the data in the skb is read,
		 * rwnd is updated when the event is freed.
		 */
		if (!sctp_ulpevent_is_notification(event))
			sctp_assoc_rwnd_increase(event->asoc, copied);
		goto out;
	} else if ((event->msg_flags & MSG_NOTIFICATION) ||