diff options
author | brian <brian@cvs.openbsd.org> | 1999-06-26 02:57:02 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1999-06-26 02:57:02 +0000 |
commit | 5483126b7e2821d576a0f293ce333daad3f4f357 (patch) | |
tree | 527afcd92b77d2f3293ededb8e21aa1fd7ce68a0 | |
parent | 4a8b578ca345f530e8c023dea606785146153d15 (diff) |
Don't bother read()ing if we ``expect'' nothing in our chat script.
-rw-r--r-- | usr.sbin/ppp/ppp/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/chat.c b/usr.sbin/ppp/ppp/chat.c index b09816a6ee9..9757962d0f1 100644 --- a/usr.sbin/ppp/ppp/chat.c +++ b/usr.sbin/ppp/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.8 1999/06/26 02:56:52 brian Exp $ + * $Id: chat.c,v 1.9 1999/06/26 02:57:01 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 |