From 63f7bbda3e34aa196c56347911c240ef55c5b92b Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 26 Jun 1999 02:54:36 +0000 Subject: Don't bother read()ing if we ``expect'' nothing in our chat script. --- usr.sbin/ppp/chat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ppp/chat.c') diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index 9e9fa17..8819fd8 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: chat.c,v 1.57 1999/06/09 08:47:31 brian Exp $ + * $Id: chat.c,v 1.58 1999/06/26 02:54:24 brian Exp $ */ #include @@ -318,7 +318,7 @@ static int chat_IsSet(struct descriptor *d, const fd_set *fdset) { struct chat *c = descriptor2chat(d); - return physical_IsSet(&c->physical->desc, fdset); + return c->argptr && physical_IsSet(&c->physical->desc, fdset); } static void -- cgit v1.1