Add tcdrain() at end of patty_kiss_tnc_send()

This commit is contained in:
XANTRONIX Development 2020-08-03 02:15:10 -04:00 committed by XANTRONIX Industrial
parent eb04bc4bb5
commit 16179894d2

View file

@ -376,6 +376,10 @@ ssize_t patty_kiss_tnc_send(patty_kiss_tnc *tnc,
goto error_io;
}
if (tcdrain(tnc->fd) < 0) {
goto error_io;
}
return len;
error_io: