X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/d136cf4cf4eb36e5cf3d44a679ea2c898fea9e14..81fdcc99873a7926940642e33c2e2b25b11a689c:/net/rfb.c diff --git a/net/rfb.c b/net/rfb.c index cd813eb..9b9d4e9 100644 --- a/net/rfb.c +++ b/net/rfb.c @@ -595,6 +595,8 @@ static err_t rfb_accept(void *arg, struct tcp_pcb *pcb, err_t err) { state->writepos = 0; state->update_requested = 0; state->send_state = SST_IDLE; + state->chunk_xnum = 0; + state->chunk_ynum = 0; memset(state->checksums, 0, sizeof(state->checksums)); /* XXX: update_server_info() should be called from the 64ms timer, and deal