diff options
author | brian <brian@FreeBSD.org> | 1999-06-26 02:54:36 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-06-26 02:54:36 +0000 |
commit | 63f7bbda3e34aa196c56347911c240ef55c5b92b (patch) | |
tree | 4b84869fa71e10a3e8ed0983974d8539fd1688b8 /usr.sbin/ppp/chat.c | |
parent | 909ee378b759d58c5e58ab3593c53ae6ce3f4225 (diff) | |
download | FreeBSD-src-63f7bbda3e34aa196c56347911c240ef55c5b92b.zip FreeBSD-src-63f7bbda3e34aa196c56347911c240ef55c5b92b.tar.gz |
Don't bother read()ing if we ``expect'' nothing in our chat script.
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r-- | usr.sbin/ppp/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <sys/param.h> @@ -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 |