diff options
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 3 |
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; |