From 45026d43f6cfbe0f6efa446b47629cb948db5a9d Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Thu, 15 Nov 2012 14:21:35 +0400 Subject: merge upstream --- accel-pppd/cli/tcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'accel-pppd/cli/tcp.c') diff --git a/accel-pppd/cli/tcp.c b/accel-pppd/cli/tcp.c index 9ea914c9..b2ed9105 100644 --- a/accel-pppd/cli/tcp.c +++ b/accel-pppd/cli/tcp.c @@ -208,8 +208,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); -- cgit v1.2.3