diff options
author | Tsutomu Fujii <t-fujii@nb.jp.nec.com> | 2006-01-17 11:57:09 -0800 |
---|---|---|
committer | Sridhar Samudrala <sri@us.ibm.com> | 2006-01-17 11:57:09 -0800 |
commit | a7d1f1b66c05ef4ebb58a34be7caad9af15546a4 (patch) | |
tree | 10395b7c00460c63576b06e7e252b9de60a2504a /net/sctp/sm_statefuns.c | |
parent | c4d2444e992c4eda1d7fc3287e93ba58295bf6b9 (diff) | |
download | talos-obmc-linux-a7d1f1b66c05ef4ebb58a34be7caad9af15546a4.tar.gz talos-obmc-linux-a7d1f1b66c05ef4ebb58a34be7caad9af15546a4.zip |
[SCTP]: Fix sctp_rcv_ootb() to handle the last chunk of a packet correctly.
Signed-off-by: Tsutomu Fujii <t-fujii@nb.jp.nec.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Diffstat (limited to 'net/sctp/sm_statefuns.c')
-rw-r--r-- | net/sctp/sm_statefuns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index 477d7f80dba6..71c9a961c321 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c @@ -3090,6 +3090,8 @@ sctp_disposition_t sctp_sf_ootb(const struct sctp_endpoint *ep, break; ch_end = ((__u8 *)ch) + WORD_ROUND(ntohs(ch->length)); + if (ch_end > skb->tail) + break; if (SCTP_CID_SHUTDOWN_ACK == ch->type) ootb_shut_ack = 1; |