diff options
author | Kozlov Dmitry <dima@server> | 2012-11-15 14:21:35 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-01-24 23:51:33 +0400 |
commit | 45026d43f6cfbe0f6efa446b47629cb948db5a9d (patch) | |
tree | be206f8519ba8169f7ca8e87f0cfc66b63ef9a74 /accel-pppd/cli/telnet.c | |
parent | 227298572c50013225752ff3af13ffc724d26ddf (diff) | |
download | accel-ppp-xebd-45026d43f6cfbe0f6efa446b47629cb948db5a9d.tar.gz accel-ppp-xebd-45026d43f6cfbe0f6efa446b47629cb948db5a9d.zip |
merge upstream
Diffstat (limited to 'accel-pppd/cli/telnet.c')
-rw-r--r-- | accel-pppd/cli/telnet.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/cli/telnet.c b/accel-pppd/cli/telnet.c index e9e886d..5a42a99 100644 --- a/accel-pppd/cli/telnet.c +++ b/accel-pppd/cli/telnet.c @@ -518,8 +518,10 @@ static int cln_write(struct triton_md_handler_t *h) _free(cln->xmit_buf); cln->xmit_pos = 0; - if (list_empty(&cln->xmit_queue)) + if (list_empty(&cln->xmit_queue)) { + cln->xmit_buf = NULL; break; + } cln->xmit_buf = list_entry(cln->xmit_queue.next, typeof(*cln->xmit_buf), entry); list_del(&cln->xmit_buf->entry); |