session: avoid dgram dequeues with no transport

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I1a3393b579caeb5dc25b60bc1b4a71706fb07051
This commit is contained in:
Florin Coras
2023-01-06 11:38:49 -08:00
committed by Florin Coras
parent cfaf440202
commit 227660b996

View File

@ -1163,6 +1163,11 @@ session_tx_not_ready (session_t * s, u8 peek_data)
return 2;
}
}
else
{
if (s->session_state == SESSION_STATE_TRANSPORT_DELETED)
return 2;
}
return 0;
}