Commit f6e80abe authored by Zijie Pan's avatar Zijie Pan Committed by David S. Miller

sctp: fix call to SCTP_CMD_PROCESS_SACK in sctp_cmd_interpreter()

Bug introduced by commit edfee033
(sctp: check src addr when processing SACK to update transport state)
Signed-off-by: default avatarZijie Pan <zijie.pan@6wind.com>
Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: default avatarVlad Yasevich <vyasevich@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 55462cf3
...@@ -1642,8 +1642,9 @@ static int sctp_cmd_interpreter(sctp_event_t event_type, ...@@ -1642,8 +1642,9 @@ static int sctp_cmd_interpreter(sctp_event_t event_type,
asoc->outqueue.outstanding_bytes; asoc->outqueue.outstanding_bytes;
sackh.num_gap_ack_blocks = 0; sackh.num_gap_ack_blocks = 0;
sackh.num_dup_tsns = 0; sackh.num_dup_tsns = 0;
chunk->subh.sack_hdr = &sackh;
sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_SACK, sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_SACK,
SCTP_SACKH(&sackh)); SCTP_CHUNK(chunk));
break; break;
case SCTP_CMD_DISCARD_PACKET: case SCTP_CMD_DISCARD_PACKET:
......
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