TMXR: Avoid assigning incoming connections to modem enabled lines which don't have DTR raised.

This commit is contained in:
Mark Pizzolato 2016-03-15 17:32:09 -07:00
parent f71acb307d
commit 9de34d7f60

View file

@ -1018,7 +1018,8 @@ if (mp->master) {
if ((lp->conn == FALSE) && /* is the line available? */ if ((lp->conn == FALSE) && /* is the line available? */
(lp->destination == NULL) && (lp->destination == NULL) &&
(lp->master == 0) && (lp->master == 0) &&
(lp->ser_connect_pending == FALSE)) (lp->ser_connect_pending == FALSE) &&
(lp->modem_control ? ((lp->modembits & TMXR_MDM_DTR) != 0) : TRUE))
break; /* yes, so stop search */ break; /* yes, so stop search */
} }