Skip to content

Commit bf2f3ba

Browse files
lxingregkh
authored andcommitted
sctp: use the old asoc when making the cookie-ack chunk in dupcook_d
[ Upstream commit 46e16d4 ] When processing a duplicate cookie-echo chunk, for case 'D', sctp will not process the param from this chunk. It means old asoc has nothing to be updated, and the new temp asoc doesn't have the complete info. So there's no reason to use the new asoc when creating the cookie-ack chunk. Otherwise, like when auth is enabled for cookie-ack, the chunk can not be set with auth, and it will definitely be dropped by peer. This issue is there since very beginning, and we fix it by using the old asoc instead. Signed-off-by: Xin Long <[email protected]> Acked-by: Neil Horman <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4dce9af commit bf2f3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sctp/sm_statefuns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ static enum sctp_disposition sctp_sf_do_dupcook_d(
20092009
}
20102010
}
20112011

2012-
repl = sctp_make_cookie_ack(new_asoc, chunk);
2012+
repl = sctp_make_cookie_ack(asoc, chunk);
20132013
if (!repl)
20142014
goto nomem;
20152015

0 commit comments

Comments
 (0)