[or-cvs] r14216: Only log a notice that dmalloc has been set up if it fails. (in tor/trunk: . src/or)
Fabian Keil
freebsd-listen at fabiankeil.de
Thu Mar 27 18:54:22 UTC 2008
nickm at seul.org wrote:
> Author: nickm
> Date: 2008-03-27 12:46:39 -0400 (Thu, 27 Mar 2008)
> New Revision: 14216
> Log:
> r19093 at catbus: nickm | 2008-03-27 12:43:58 -0400
> Only log a notice that dmalloc has been set up if it fails. Actually,
> since we have not added a temp log yet, I am not sure this ever does
> anything.
> Modified: tor/trunk/src/or/main.c
> ===================================================================
> --- tor/trunk/src/or/main.c 2008-03-27 16:46:36 UTC (rev 14215)
> +++ tor/trunk/src/or/main.c 2008-03-27 16:46:39 UTC (rev 14216)
> @@ -1969,7 +1969,8 @@
> #ifdef USE_DMALLOC
> int r = CRYPTO_set_mem_ex_functions(_tor_malloc, _tor_realloc,
> _tor_dmalloc_free);
> - log_notice(LD_CONFIG, "Set up dmalloc; returned %d", r);
> + if (!r) {
> + log_warn("Couldn't configure openssl to use dmalloc functions.");
> #endif
> #ifdef NT_SERVICE
> {
I might be missing the bigger picture here,
but the opening curly brace looks lonely to me.
Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20080327/27ff9b66/attachment.pgp>
More information about the tor-dev
mailing list