summaryrefslogtreecommitdiff
path: root/src/or/hs_descriptor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/hs_descriptor.c')
-rw-r--r--src/or/hs_descriptor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/hs_descriptor.c b/src/or/hs_descriptor.c
index f441fbf03b..94f7ce865b 100644
--- a/src/or/hs_descriptor.c
+++ b/src/or/hs_descriptor.c
@@ -1505,8 +1505,9 @@ decode_superencrypted(const char *message, size_t message_len,
/* Copy the encrypted blob to the descriptor object so we can handle it
* latter if needed. */
+ tor_assert(tok->object_size <= INT_MAX);
*encrypted_out = tor_memdup(tok->object_body, tok->object_size);
- retval = tok->object_size;
+ retval = (int) tok->object_size;
}
err: