s = (t38_terminal_state_t *) user_data;
fe = &s->t38_fe;
+ /* Protect against T.38 stuff arriving after we've actually finished. */
+ if (fe->current_rx_type == T30_MODEM_DONE)
+ return 0;
+
if (t->current_rx_indicator == indicator)
{
/* This is probably due to the far end repeating itself, or slipping
s = (t38_terminal_state_t *) user_data;
fe = &s->t38_fe;
+
+ /* Protect against T.38 stuff arriving after we've actually finished. */
+ if (fe->current_rx_type == T30_MODEM_DONE)
+ return 0;
+
/* In termination mode we don't care very much what the data type is apart from a couple of
special cases. */
switch (data_type)