]> granicus.if.org Git - libevent/log
libevent
12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 16 Nov 2012 15:44:57 +0000 (10:44 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoremove stray 'x' so print_err will compile when uncommented
Patrick Pelletier [Thu, 8 Nov 2012 03:48:22 +0000 (19:48 -0800)]
remove stray 'x' so print_err will compile when uncommented

12 years agoMerge pull request #27 from pallas/master
Nick Mathewson [Fri, 16 Nov 2012 15:42:17 +0000 (07:42 -0800)]
Merge pull request #27 from pallas/master

Fix event_dlist definition when sys/queue not included

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 16 Nov 2012 15:29:37 +0000 (10:29 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
test/rpcgen_wrapper.sh

12 years agoMake rpcgen_wrapper.sh work on systems without a "python2" binary
Nick Mathewson [Fri, 16 Nov 2012 15:28:19 +0000 (10:28 -0500)]
Make rpcgen_wrapper.sh work on systems without a "python2" binary

12 years agoAdd a unit test in which an event is created with event_base_once() but never fires
Nick Mathewson [Fri, 16 Nov 2012 15:17:34 +0000 (10:17 -0500)]
Add a unit test in which an event is created with event_base_once() but never fires

12 years agoMerge branch '21_event_cleanup_v3'
Nick Mathewson [Fri, 16 Nov 2012 15:13:15 +0000 (10:13 -0500)]
Merge branch '21_event_cleanup_v3'

12 years agoFree dangling event_once objects on event_base_free()
Nick Mathewson [Fri, 15 Jul 2011 15:10:54 +0000 (11:10 -0400)]
Free dangling event_once objects on event_base_free()

This patch makes us keep event_once objects in a doubly linked list
so we can free any once that haven't triggered when we call
event_base_free().

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 15 Nov 2012 16:45:12 +0000 (11:45 -0500)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoWarn when openssl version in unit test mismatches compiled version.
Nick Mathewson [Thu, 15 Nov 2012 16:43:20 +0000 (11:43 -0500)]
Warn when openssl version in unit test mismatches compiled version.

12 years agoFix renegotiation test to work around openssl 1.0.1 bug
Nick Mathewson [Thu, 15 Nov 2012 16:42:14 +0000 (11:42 -0500)]
Fix renegotiation test to work around openssl 1.0.1 bug

There's a bug in openssl 1.0.1 where TLS1.1 and TLS1.2 can't
renegotiate with themselves.  When testing renegotiation with OpenSSL
>=1.0.1 and <1.0.1d, disable those protocols.

12 years agoUse the same CFLAGS for openssl when building unit tests as with libevent
Nick Mathewson [Thu, 15 Nov 2012 16:40:33 +0000 (11:40 -0500)]
Use the same CFLAGS for openssl when building unit tests as with libevent

12 years agoFix event_dlist definition when sys/queue not included
Derrick Pallas [Sat, 10 Nov 2012 19:22:15 +0000 (11:22 -0800)]
Fix event_dlist definition when sys/queue not included

This header adds TAILQ_HEAD and TAILQ_ENTRY if sys/queue is not included.
There is a similar macro that adds LIST_ENTRY but not LIST_HEAD, even though
LIST_HEAD is used later.

This change pulls in the correct definition (swiped from sys/queue) for
LIST_HEAD and cleans up the one spot where it is used.  The change can be
tested by adding

#undef LIST_HEAD
#undef LIST_ENTRY

right before the #ifndef checks and removing

#define EVENT_DEFINED_LISTENTRY_
#define EVENT_DEFINED_LISTHEAD_

so that the macros persist later.

12 years agoClean up unit test for evbuffer_file_segment_add_cleanup_cb a little
Nick Mathewson [Tue, 6 Nov 2012 22:42:46 +0000 (17:42 -0500)]
Clean up unit test for evbuffer_file_segment_add_cleanup_cb a little

12 years agoAdd a new callback to get called on evbuffer_file_segment free
yangacer [Tue, 6 Nov 2012 22:37:28 +0000 (17:37 -0500)]
Add a new callback to get called on evbuffer_file_segment free

12 years agoMerge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation
Nick Mathewson [Fri, 2 Nov 2012 15:46:14 +0000 (11:46 -0400)]
Merge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation

Conflicts:
http.c
signal.c

12 years agoFix compilation on mingw64 with -DUSE_DEBUG
Nick Mathewson [Fri, 2 Nov 2012 15:44:29 +0000 (11:44 -0400)]
Fix compilation on mingw64 with -DUSE_DEBUG

12 years agoFix a few mingw64 incompatibilities introduced since 2.0
Nick Mathewson [Fri, 2 Nov 2012 14:58:02 +0000 (10:58 -0400)]
Fix a few mingw64 incompatibilities introduced since 2.0

12 years agoMerge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation
Nick Mathewson [Thu, 1 Nov 2012 22:12:07 +0000 (18:12 -0400)]
Merge remote-tracking branch 'github/20_win64_compilation' into 21_win64_compilation

Conflicts:
event.c
http.c
sample/event-read-fifo.c
test/regress_bufferevent.c

12 years agoFix some warnings found cross-compiling with mingw32
Nick Mathewson [Thu, 1 Nov 2012 22:05:27 +0000 (18:05 -0400)]
Fix some warnings found cross-compiling with mingw32

12 years agoCompile without warnings on mingw64
Nick Mathewson [Thu, 1 Nov 2012 21:38:34 +0000 (17:38 -0400)]
Compile without warnings on mingw64

This is mostly a matter of catching cases where we were still
assuming that evutil_socket_t could be used as an int.

12 years agoMerge remote-tracking branch 'rosslagerwall/python2'
Nick Mathewson [Thu, 1 Nov 2012 14:19:01 +0000 (10:19 -0400)]
Merge remote-tracking branch 'rosslagerwall/python2'

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 26 Oct 2012 23:37:00 +0000 (19:37 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoMerge remote-tracking branch 'rosslagerwall/python2-2.0' into patches-2.0
Nick Mathewson [Fri, 26 Oct 2012 23:36:44 +0000 (19:36 -0400)]
Merge remote-tracking branch 'rosslagerwall/python2-2.0' into patches-2.0

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 26 Oct 2012 23:34:47 +0000 (19:34 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoClose IOCP listener socket on free when LEV_OPT_CLOSE_ON_FREE is set
Juan Pablo Fernandez [Fri, 26 Oct 2012 23:33:31 +0000 (19:33 -0400)]
Close IOCP listener socket on free when LEV_OPT_CLOSE_ON_FREE is set

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 25 Oct 2012 02:55:17 +0000 (22:55 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
bufferevent_openssl.c

12 years agoMerge remote-tracking branch 'public/20_bev_timeout_semantics' into patches-2.0
Nick Mathewson [Thu, 25 Oct 2012 02:48:59 +0000 (22:48 -0400)]
Merge remote-tracking branch 'public/20_bev_timeout_semantics' into patches-2.0

12 years agoUse python2 rather than python
Ross Lagerwall [Tue, 23 Oct 2012 12:30:58 +0000 (13:30 +0100)]
Use python2 rather than python

python may refer to either python2 or python3 so rather by explicit by
using python2.
See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more
details.

12 years agoUse python2 rather than python
Ross Lagerwall [Tue, 23 Oct 2012 12:26:44 +0000 (13:26 +0100)]
Use python2 rather than python

python may refer to either python2 or python3 so rather by explicit by
using python2.
See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more
details.

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Sat, 22 Sep 2012 23:21:21 +0000 (19:21 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
bufferevent_openssl.c

12 years agoNo need to reserve space if reading is suspended.
Joachim Bauch [Thu, 6 Sep 2012 08:01:10 +0000 (10:01 +0200)]
No need to reserve space if reading is suspended.

Conflicts:
bufferevent_openssl.c

12 years agoStop looping in "consider_reading" if reading is suspended.
Joachim Bauch [Mon, 3 Sep 2012 19:42:15 +0000 (21:42 +0200)]
Stop looping in "consider_reading" if reading is suspended.

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 13 Sep 2012 00:19:22 +0000 (20:19 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoFIx another memleak on OOM in evdns
George Danchev [Thu, 13 Sep 2012 00:12:03 +0000 (20:12 -0400)]
FIx another memleak on OOM in evdns

12 years agoAvoid a memory-leak on OOM in evdns.
George Danchev [Thu, 13 Sep 2012 00:11:12 +0000 (20:11 -0400)]
Avoid a memory-leak on OOM in evdns.

12 years agoAdd missing return value in event_base_foreach_event
Nick Mathewson [Mon, 10 Sep 2012 17:43:26 +0000 (13:43 -0400)]
Add missing return value in event_base_foreach_event

Fix for github issue nmathewson/Libevent #65

Found by Joachim Bauch

12 years agoDon't discard SSL read event when timeout and read come close together
Nick Mathewson [Fri, 7 Sep 2012 19:53:02 +0000 (15:53 -0400)]
Don't discard SSL read event when timeout and read come close together

12 years agoTweak patch for event_base_foreach_event()
Nick Mathewson [Fri, 7 Sep 2012 13:58:24 +0000 (09:58 -0400)]
Tweak patch for event_base_foreach_event()

* Fix whitespace
* Explain return value from callback function
* Reinstate return value so that caller can tell whether forech
  exited early.
* Rename event_base_foreach_event_() to
  event_base_foreach_event_nolock_().
* Use event_base_foreach_event_cb_fn typedef in more places
* Be more dire about undefined behavior.

12 years agoExpose event_base_foreach_event() as a public API.
Roman Puls [Fri, 7 Sep 2012 13:47:50 +0000 (09:47 -0400)]
Expose event_base_foreach_event() as a public API.

12 years agoMerge pull request #61 from rosslagerwall/rename-configure
Nick Mathewson [Tue, 4 Sep 2012 14:58:38 +0000 (07:58 -0700)]
Merge pull request #61 from rosslagerwall/rename-configure

Rename configure.in to configure.ac.

12 years agoPrevent reference leak of bufferevent if getaddrinfo fails.
Joachim Bauch [Mon, 3 Sep 2012 15:49:15 +0000 (17:49 +0200)]
Prevent reference leak of bufferevent if getaddrinfo fails.

12 years agoRename configure.in to configure.ac.
Ross Lagerwall [Mon, 3 Sep 2012 06:37:25 +0000 (08:37 +0200)]
Rename configure.in to configure.ac.

".ac" is the preferred extension.

12 years agoWe now require automake 1.9 or later. Modernize!
Nick Mathewson [Tue, 28 Aug 2012 20:22:00 +0000 (16:22 -0400)]
We now require automake 1.9 or later. Modernize!

12 years agoFix handling of no-python case for nonrecursive make
Nick Mathewson [Tue, 28 Aug 2012 20:15:14 +0000 (16:15 -0400)]
Fix handling of no-python case for nonrecursive make

12 years agoBe quiet when making regress.gen.[ch]
Nick Mathewson [Tue, 28 Aug 2012 20:14:38 +0000 (16:14 -0400)]
Be quiet when making regress.gen.[ch]

12 years agoNew --quiet option for event_rpcgen.py
Nick Mathewson [Tue, 28 Aug 2012 20:14:17 +0000 (16:14 -0400)]
New --quiet option for event_rpcgen.py

12 years agoMake quiet build even quieter
Nick Mathewson [Tue, 28 Aug 2012 20:07:56 +0000 (16:07 -0400)]
Make quiet build even quieter

12 years agoRename subordinate Makefile.ams to include.am
Nick Mathewson [Tue, 28 Aug 2012 20:01:14 +0000 (16:01 -0400)]
Rename subordinate Makefile.ams to include.am

12 years agoSwitch to non-recursive makefiles
Nick Mathewson [Tue, 28 Aug 2012 19:58:18 +0000 (15:58 -0400)]
Switch to non-recursive makefiles

This approach should let Make work better, let libevent build faster
(especially when using a parallelized build), and basically make the
Makefiles easier to maintain.

See http://miller.emu.id.au/pmiller/books/rmch/ for more info on why
you'd want to do this.

This is due to an idea from Zack Weinberg; the patch is my own.

12 years agoEnable silent build rules by default. Override with V=1
Nick Mathewson [Tue, 28 Aug 2012 19:10:55 +0000 (15:10 -0400)]
Enable silent build rules by default. Override with V=1

12 years agoUse newer syntax for autoconf/automake init
Nick Mathewson [Tue, 28 Aug 2012 19:09:49 +0000 (15:09 -0400)]
Use newer syntax for autoconf/automake init

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Fri, 24 Aug 2012 15:41:18 +0000 (11:41 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoIncrement version to 2.0.20-stable-dev
Nick Mathewson [Fri, 24 Aug 2012 15:40:46 +0000 (11:40 -0400)]
Increment version to 2.0.20-stable-dev

12 years agoUpdate ChangeLog-2.0
Nick Mathewson [Thu, 23 Aug 2012 18:42:54 +0000 (14:42 -0400)]
Update ChangeLog-2.0

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 23 Aug 2012 18:41:51 +0000 (14:41 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoAdd a date to the changelog release-2.0.20-stable
Nick Mathewson [Thu, 23 Aug 2012 18:39:30 +0000 (14:39 -0400)]
Add a date to the changelog

12 years agoIncrement version to 2.0.20-stable
Nick Mathewson [Thu, 23 Aug 2012 18:38:54 +0000 (14:38 -0400)]
Increment version to 2.0.20-stable

12 years agoInitial changelog and credits for 2.0.20
Nick Mathewson [Thu, 23 Aug 2012 14:36:39 +0000 (10:36 -0400)]
Initial changelog and credits for 2.0.20

12 years agoAdd missing implementation for event_enable_debug_logging
Nick Mathewson [Thu, 23 Aug 2012 15:42:04 +0000 (11:42 -0400)]
Add missing implementation for event_enable_debug_logging

12 years agoRename event_enable_lock_debuging() to ..._debugging()
Nick Mathewson [Thu, 23 Aug 2012 14:46:29 +0000 (10:46 -0400)]
Rename event_enable_lock_debuging() to ..._debugging()

Keep the misspelled version around for backward compatibility

Based on a patch by Diwaker Gupta.

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 23 Aug 2012 14:13:26 +0000 (10:13 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoCorrectly invoke callbacks when a SSL bufferevent reads some and then blocks.
Nick Mathewson [Wed, 22 Aug 2012 16:30:42 +0000 (12:30 -0400)]
Correctly invoke callbacks when a SSL bufferevent reads some and then blocks.

Based on a patch by Andrew Hochhaus, who correctly diagnosed this bug.

12 years agoAvoid test -e; older shs don't have one.
Nick Mathewson [Thu, 2 Aug 2012 19:02:27 +0000 (15:02 -0400)]
Avoid test -e; older shs don't have one.

Reported by Paul Croome.

Report forwarded by Dave Hart.

12 years agoAdd deferred_cb_skew to list of timing-dependent tests
Nick Mathewson [Thu, 2 Aug 2012 16:36:05 +0000 (12:36 -0400)]
Add deferred_cb_skew to list of timing-dependent tests

12 years agoAvoid unused-var warning on systems with clock_gettime but without CLOCK_MONOTONIC_COARSE
Nick Mathewson [Thu, 2 Aug 2012 16:35:49 +0000 (12:35 -0400)]
Avoid unused-var warning on systems with clock_gettime but without CLOCK_MONOTONIC_COARSE

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 2 Aug 2012 16:09:08 +0000 (12:09 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
evutil_rand.c

12 years agoAdd explicit AC_PROG_SED to configure.in so all autoconfs will expose $(SED)
Nick Mathewson [Thu, 2 Aug 2012 15:56:17 +0000 (11:56 -0400)]
Add explicit AC_PROG_SED to configure.in so all autoconfs will expose $(SED)

12 years agoFix an unused variable warning on *BSD.
Nick Mathewson [Thu, 2 Aug 2012 15:38:32 +0000 (11:38 -0400)]
Fix an unused variable warning on *BSD.

12 years agoMerge remote-tracking branch 'ppelleti/windows-ssl'
Nick Mathewson [Tue, 31 Jul 2012 16:03:48 +0000 (12:03 -0400)]
Merge remote-tracking branch 'ppelleti/windows-ssl'

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Mon, 30 Jul 2012 21:08:44 +0000 (17:08 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoAvoid segfault on weird timeout during name lookup.
Greg Hazel [Mon, 30 Jul 2012 20:52:55 +0000 (16:52 -0400)]
Avoid segfault on weird timeout during name lookup.

If an evdns_getaddrinfo timeout happens while pending_cb is set, and
a callback is about to run, but we get a call to
evdns_getaddrinfo_gotresolve before it finishes.

Github issue #60. Thanks to Greg Hazel for patch and patience.

12 years agoExtract common error-handling code in evconnlistener_new_bind
Nick Mathewson [Thu, 26 Jul 2012 14:49:06 +0000 (10:49 -0400)]
Extract common error-handling code in evconnlistener_new_bind

12 years agoAvoid double-free on error in evbuffer_add_file. Found by coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:45:10 +0000 (10:45 -0400)]
Avoid double-free on error in evbuffer_add_file. Found by coverity.

12 years agoCheck return value when using LEV_OPT_DEFERRED_ACCEPT. Found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:44:48 +0000 (10:44 -0400)]
Check return value when using LEV_OPT_DEFERRED_ACCEPT. Found by coverity

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 26 Jul 2012 14:43:13 +0000 (10:43 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
buffer.c
http.c

12 years agoCheck more setsockopt return values when binding sockets. Found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:39:05 +0000 (10:39 -0400)]
Check more setsockopt return values when binding sockets. Found by coverity

12 years agomemset sockaddr_in before using it. Found by coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:38:29 +0000 (10:38 -0400)]
memset sockaddr_in before using it. Found by coverity.

12 years agoMove assignment outside tt_assert in ssl unit tests. Appeases coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:37:47 +0000 (10:37 -0400)]
Move assignment outside tt_assert in ssl unit tests. Appeases coverity.

12 years agoAdd checks to various return values in unit tests. Found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:37:13 +0000 (10:37 -0400)]
Add checks to various return values in unit tests. Found by coverity

12 years agoAvoid possible needless call to writev. Found by coverity.
Nick Mathewson [Thu, 26 Jul 2012 14:34:06 +0000 (10:34 -0400)]
Avoid possible needless call to writev. Found by coverity.

12 years agoRemove unused variable; spotted by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:16:47 +0000 (10:16 -0400)]
Remove unused variable; spotted by coverity

12 years agoFix a shadowed variable in addfile_test_readcb; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:11:17 +0000 (10:11 -0400)]
Fix a shadowed variable in addfile_test_readcb; found by coverity

12 years agoAvoid memory leak in test_event_calloc unit test; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:11:00 +0000 (10:11 -0400)]
Avoid memory leak in test_event_calloc unit test; found by coverity

12 years agoAdd checks for functions in test-ratelim.c; found by Coverity
Nick Mathewson [Thu, 26 Jul 2012 14:10:35 +0000 (10:10 -0400)]
Add checks for functions in test-ratelim.c; found by Coverity

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Thu, 26 Jul 2012 14:09:13 +0000 (10:09 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
configure.in
test/regress_buffer.c
test/regress_dns.c

12 years agoAvoid more crashes/bad calls in unit tests; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 14:04:43 +0000 (10:04 -0400)]
Avoid more crashes/bad calls in unit tests; found by coverity

12 years agoAdd some missing null checks to unit tests; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 13:59:47 +0000 (09:59 -0400)]
Add some missing null checks to unit tests; found by coverity

12 years agoFix resource leaks in the unit tests; found by coverity
Nick Mathewson [Thu, 26 Jul 2012 13:53:20 +0000 (09:53 -0400)]
Fix resource leaks in the unit tests; found by coverity

12 years agoFix various check-after-dereference issues in unit tests: found by coverity
Nick Mathewson [Thu, 26 Jul 2012 13:35:43 +0000 (09:35 -0400)]
Fix various check-after-dereference issues in unit tests: found by coverity

12 years agoSet umask before calling mkstemp in unit tests. Found by coverity
Nick Mathewson [Wed, 25 Jul 2012 20:18:33 +0000 (16:18 -0400)]
Set umask before calling mkstemp in unit tests. Found by coverity

12 years agoFix another possible uninitialized read in dns regression tests. Found by coverity.
Nick Mathewson [Wed, 25 Jul 2012 20:07:22 +0000 (16:07 -0400)]
Fix another possible uninitialized read in dns regression tests. Found by coverity.

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Wed, 25 Jul 2012 20:06:51 +0000 (16:06 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoFix possible uninitialized read in dns regression tests. Found by coverity.
Nick Mathewson [Wed, 25 Jul 2012 20:05:36 +0000 (16:05 -0400)]
Fix possible uninitialized read in dns regression tests. Found by coverity.

12 years agoRemove deadcode in http regression tests. Found by coverity.
Nick Mathewson [Wed, 25 Jul 2012 19:59:50 +0000 (15:59 -0400)]
Remove deadcode in http regression tests. Found by coverity.

12 years agoAdd process.h include to evutil.c for _getpid
Nick Mathewson [Mon, 23 Jul 2012 20:32:43 +0000 (16:32 -0400)]
Add process.h include to evutil.c for _getpid

12 years agoFix tinytset_skip to work with new tinytest_set_flag_ signature
Nick Mathewson [Fri, 20 Jul 2012 19:36:15 +0000 (15:36 -0400)]
Fix tinytset_skip to work with new tinytest_set_flag_ signature

12 years agoFix compile error in win32 listener.c
Nick Mathewson [Fri, 20 Jul 2012 19:35:33 +0000 (15:35 -0400)]
Fix compile error in win32 listener.c

SF issue 3546388

12 years agoMerge remote-tracking branch 'origin/patches-2.0'
Nick Mathewson [Tue, 17 Jul 2012 15:10:44 +0000 (11:10 -0400)]
Merge remote-tracking branch 'origin/patches-2.0'

12 years agoFix a memory leak on error in evhttp_uriencode
Nick Mathewson [Tue, 17 Jul 2012 15:08:25 +0000 (11:08 -0400)]
Fix a memory leak on error in evhttp_uriencode

If we ran out of memory in evhttp_uriencode when allocating the
output buffer, we would neglect to call evbuffer_free() on our
temporary buffer.  Now we always free the temporary buffer.

Fixes sourceforge issue 3539887. Thanks to Andrew Cox for reporting
this one.