1. 13 11月, 2007 4 次提交
  2. 12 11月, 2007 1 次提交
    • J
      Fix memory leak in discard case of sctp_sf_abort_violation() · 9abed245
      Jesper Juhl 提交于
      In net/sctp/sm_statefuns.c::sctp_sf_abort_violation() we may leak
      the storage allocated for 'abort' by returning from the function
      without using or freeing it. This happens in case
      "sctp_auth_recv_cid(SCTP_CID_ABORT, asoc)" is true and we jump to
      the 'discard' label.
      Spotted by the Coverity checker.
      
      The simple fix is to simply move the creation of the "abort chunk"
      to after the possible jump to the 'discard' label. This way we don't
      even have to allocate the memory at all in the problem case.
      Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      9abed245
  3. 11 11月, 2007 33 次提交
  4. 10 11月, 2007 2 次提交
    • V
      SCTP: Always flush the queue when uncorcking. · 7d54dc68
      Vlad Yasevich 提交于
      When the code calls uncork, trigger a queue flush, even
      if the queue was not corked.  Most callers that explicitely
      cork the queue will have additinal checks to see if they 
      corked it.  Callers who do not cork the queue expect packets
      to flow when they call uncork.
      
      The scneario that showcased this bug happend when we were not
      able to bundle DATA with outgoing COOKIE-ECHO.  As a result
      the data just sat in the outqueue and did not get transmitted.
      The application expected a response, but nothing happened.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      7d54dc68
    • V
      SCTP: Fix PR-SCTP to deliver all the accumulated ordered chunks · cd3ae8e6
      Vlad Yasevich 提交于
      There is a small bug when we process a FWD-TSN.  We'll deliver
      anything upto the current next expected SSN.  However, if the
      next expected is already in the queue, it will take another
      chunk to trigger its delivery.  The fix is to simply check
      the current queued SSN is the next expected one.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      cd3ae8e6