diff options
author | brian <brian@FreeBSD.org> | 1997-11-18 07:33:23 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-18 07:33:23 +0000 |
commit | f87bd4435e05f7c9c990af218b042914a771c8b1 (patch) | |
tree | f08570e9ae78b8c0892b349d5a8c474e4b20ac81 /usr.sbin/ppp | |
parent | be5bd975eada298365bf4ea09f7a50ef3f45c0d3 (diff) | |
download | FreeBSD-src-f87bd4435e05f7c9c990af218b042914a771c8b1.zip FreeBSD-src-f87bd4435e05f7c9c990af218b042914a771c8b1.tar.gz |
DropClient() when read() returns 0 (as it did before).
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 97b0af1..11c6df0 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.101 1997/11/17 01:13:41 brian Exp $ + * $Id: main.c,v 1.102 1997/11/18 00:19:34 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -600,7 +600,7 @@ ReadTty() if (n) DecodeCommand(linebuff, n, IsInteractive(0) ? NULL : "Client"); Prompt(); - } else if (n < 0) + } else if (n <= 0) DropClient(); return; } |