mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'tor-github/pr/611'
This commit is contained in:
@@ -84,7 +84,7 @@ base32_encode(char *dest, size_t destlen, const char *src, size_t srclen)
|
||||
}
|
||||
|
||||
/** Implements base32 decoding as in RFC 4648.
|
||||
* Returns 0 if successful, -1 otherwise.
|
||||
* Return the number of bytes decoded if successful; -1 otherwise.
|
||||
*/
|
||||
int
|
||||
base32_decode(char *dest, size_t destlen, const char *src, size_t srclen)
|
||||
@@ -147,7 +147,7 @@ base32_decode(char *dest, size_t destlen, const char *src, size_t srclen)
|
||||
memset(tmp, 0, srclen); /* on the heap, this should be safe */
|
||||
tor_free(tmp);
|
||||
tmp = NULL;
|
||||
return 0;
|
||||
return i;
|
||||
}
|
||||
|
||||
#define BASE64_OPENSSL_LINELEN 64
|
||||
|
||||
Reference in New Issue
Block a user