From 27b317116d7186c6ff4fa232a5731f85435baac2 Mon Sep 17 00:00:00 2001 From: phani Date: Mon, 16 Dec 2019 15:55:16 -0500 Subject: [PATCH] reset offset in read --- runtime/src/sandbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/src/sandbox.c b/runtime/src/sandbox.c index 6d35b3f..91297cd 100644 --- a/runtime/src/sandbox.c +++ b/runtime/src/sandbox.c @@ -111,6 +111,7 @@ sandbox_client_request_get(void) #ifndef STANDALONE struct sandbox *curr = sandbox_current(); + curr->rr_data_len = 0; #ifndef USE_UVIO int r = 0; r = recv(curr->csock, (curr->req_resp_data), curr->mod->max_req_sz, 0);