summaryrefslogtreecommitdiffstats
path: root/src/server/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/net.c')
-rw-r--r--src/server/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/net.c b/src/server/net.c
index 5de9f14..7f3c1ce 100644
--- a/src/server/net.c
+++ b/src/server/net.c
@@ -314,6 +314,7 @@ void* net_handleNewConnection(void *clientPtr)
case CMD_GET_BLOCK:;
const uint64_t offset = request.offset_small; // Copy to full uint64 to prevent repeated masking
+ reply.handle = request.handle;
if ( offset >= image->virtualFilesize ) {
// Sanity check
logadd( LOG_WARNING, "Client %s requested non-existent block", client->hostName );
@@ -395,7 +396,6 @@ void* net_handleNewConnection(void *clientPtr)
reply.cmd = CMD_GET_BLOCK;
reply.size = request.size;
- reply.handle = request.handle;
fixup_reply( reply );
const bool lock = image->uplink != NULL;