Browse Source

termination might be send for non-established session

pull/1269/head
orignal 6 years ago
parent
commit
bffeb237de
  1. 1
      libi2pd/NTCP2.cpp

1
libi2pd/NTCP2.cpp

@ -1008,7 +1008,6 @@ namespace transport
void NTCP2Session::SendTermination (NTCP2TerminationReason reason) void NTCP2Session::SendTermination (NTCP2TerminationReason reason)
{ {
if (!IsEstablished ()) return;
uint8_t payload[12] = { eNTCP2BlkTermination, 0, 9 }; uint8_t payload[12] = { eNTCP2BlkTermination, 0, 9 };
htobe64buf (payload + 3, m_ReceiveSequenceNumber); htobe64buf (payload + 3, m_ReceiveSequenceNumber);
payload[11] = (uint8_t)reason; payload[11] = (uint8_t)reason;

Loading…
Cancel
Save