summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-27 22:35:08 +0000
committerMartin Mares <mj@ucw.cz>2000-04-27 22:35:08 +0000
commitf75e3bbc01f2b711d1a2479eddd9ea35f8cfff47 (patch)
tree8063cd5dab1f0441a8cf49de52a6c6fb52b806bc /sysdep/unix/io.c
parent54896cbdba42a2ccd83c7f23c8ba14bed37a8b73 (diff)
Fixed a couple of nasty CLI bugs which were triggered on long or multi-part
outputs. It took a whole evening to hunt them down, but now the CLI seems to work fine. Now I run three BGP connections with several thousand routes!
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 35af2df8..895f5373 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -870,7 +870,7 @@ sk_write(sock *s)
case SK_DELETED:
return;
default:
- while (s->ttx != s->tbuf && sk_maybe_write(s) > 0)
+ while (s->ttx != s->tpos && sk_maybe_write(s) > 0)
s->tx_hook(s);
}
}