Skip to content

Commit

Permalink
sctp: fix call to SCTP_CMD_PROCESS_SACK in sctp_cmd_interpreter()
Browse files Browse the repository at this point in the history
Bug introduced by commit edfee03
(sctp: check src addr when processing SACK to update transport state)

Signed-off-by: Zijie Pan <zijie.pan@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zijie Pan authored and David S. Miller committed Oct 16, 2012
1 parent 55462cf commit f6e80ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sctp/sm_sideeffect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1642,8 +1642,9 @@ static int sctp_cmd_interpreter(sctp_event_t event_type,
asoc->outqueue.outstanding_bytes;
sackh.num_gap_ack_blocks = 0;
sackh.num_dup_tsns = 0;
chunk->subh.sack_hdr = &sackh;
sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_SACK,
SCTP_SACKH(&sackh));
SCTP_CHUNK(chunk));
break;

case SCTP_CMD_DISCARD_PACKET:
Expand Down

0 comments on commit f6e80ab

Please sign in to comment.