diff options
Diffstat (limited to 'accel-pptpd/cli/tcp.c')
-rw-r--r-- | accel-pptpd/cli/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pptpd/cli/tcp.c b/accel-pptpd/cli/tcp.c index 435752aa..260225f1 100644 --- a/accel-pptpd/cli/tcp.c +++ b/accel-pptpd/cli/tcp.c @@ -73,7 +73,7 @@ static void disconnect(struct tcp_client_t *cln) static void cli_client_disconnect(struct cli_client_t *tcln) { struct tcp_client_t *cln = container_of(tcln, typeof(*cln), cli_client); - disconnect(cln); + cln->disconnect = 1; } static void queue_buffer(struct tcp_client_t *cln, struct buffer_t *b) @@ -184,7 +184,7 @@ static int cln_read(struct triton_md_handler_t *h) drop: disconnect(cln); - return 0; + return -1; } static int cln_write(struct triton_md_handler_t *h) |