From ddd6808024a4421a70a5aecfb3f65366c3d47858 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Sat, 26 Jun 1999 02:54:36 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index 9e9fa175ec45..8819fd8eed25 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