View | Details | Raw Unified | Return to bug 559
Collapse All | Expand All

(-)ns-3.4-orig/src/internet-stack/tcp-socket-impl.cc (+13 lines)
 Lines 671-676   Actions_t TcpSocketImpl::ProcessEvent (E Link Here 
671
          << m_state << " event " << e
671
          << m_state << " event " << e
672
          << " set CloseNotif ");
672
          << " set CloseNotif ");
673
    }
673
    }
674
  if (m_state == CLOSED && saveState != CLOSED && m_endPoint != 0)
675
    {
676
      NS_ASSERT (m_tcp != 0);
677
      /**
678
       * Call Ipv4EndPointDemux::Deallocate without
679
       * making it call ::Destroy like in ~TcpSocketImpl(),
680
       * and hence zero the m_endPoint field manually.
681
       */
682
      m_endPoint->SetDestroyCallback(MakeNullCallback<void>());
683
      m_tcp->DeAllocate (m_endPoint);
684
      m_endPoint = 0;
685
    }
686
    
674
  return stateAction.action;
687
  return stateAction.action;
675
}
688
}
676
689

Return to bug 559