mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix bug 1173: remove an assert(unsigned >= 0).
This commit is contained in:
@@ -532,7 +532,6 @@ crypto_pk_write_key_to_string_impl(crypto_pk_env_t *env, char **dest,
|
||||
(void)BIO_set_close(b, BIO_NOCLOSE); /* so BIO_free doesn't free buf */
|
||||
BIO_free(b);
|
||||
|
||||
tor_assert(buf->length >= 0);
|
||||
*dest = tor_malloc(buf->length+1);
|
||||
memcpy(*dest, buf->data, buf->length);
|
||||
(*dest)[buf->length] = 0; /* nul terminate it */
|
||||
|
||||
Reference in New Issue
Block a user