diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-12-15 15:51:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-12-15 15:51:59 -0500 |
commit | 1c87a27574023096212375329e5c4ba1d82f71ce (patch) | |
tree | a8c1f77feaa96c5a013b7569215820e4f7402322 /src/common | |
parent | 3a2d677fa70be56054dcabb43a88cab75500e162 (diff) | |
download | tor-1c87a27574023096212375329e5c4ba1d82f71ce.tar.gz tor-1c87a27574023096212375329e5c4ba1d82f71ce.zip |
Fix bug 1173: remove an assert(unsigned >= 0).
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/crypto.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index da38ddc62e..8676b6bc7b 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -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 */ |