aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index b8882cf21..1c068f18d 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1438,8 +1438,7 @@ int base16_encode(char *dest, int destlen, const char *src, int srclen)
const char *end;
char *cp;
- if (destlen < srclen*2+1)
- return -1;
+ tor_assert(destlen >= srclen*2+1)
cp = dest;
end = src+srclen;