summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1999-06-26 02:57:02 +0000
committerbrian <brian@cvs.openbsd.org>1999-06-26 02:57:02 +0000
commit5483126b7e2821d576a0f293ce333daad3f4f357 (patch)
tree527afcd92b77d2f3293ededb8e21aa1fd7ce68a0 /usr.sbin/ppp
parent4a8b578ca345f530e8c023dea606785146153d15 (diff)
Don't bother read()ing if we ``expect'' nothing in our chat script.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/ppp/chat.c4
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