Re: [Libevent-users] ANN: Libevent 2.0.6-rc released

2010-08-08 Thread Niels Provos
On Fri, Aug 6, 2010 at 8:10 PM, Nick Mathewson wrote: > Niels will upload this to monkey.org as soon as he has a chance; he's > been super-busy with his work lately, which is why I've been doing the > "lead developer" stuff with this release. It's up on monkey.org now. Nick, thanks for all the

Re: [Libevent-users] [PATCH] uri parsing helpers

2010-08-08 Thread Pavel Plesov
On Sun, Aug 8, 2010 at 3:55 PM, Pavel Plesov wrote: > I will alter the patch: add evhttp_uri_free(), and suppose there is no > more need for evhttp_uri_clear(). > > > [1] > https://sourceforge.net/tracker/?func=detail&aid=3037660&group_id=50884&atid=461324 > v3 patch is uploaded as 0001-Introdu

Re: [Libevent-users] [PATCH] uri parsing helpers

2010-08-08 Thread Pavel Plesov
On Sun, Aug 8, 2010 at 2:29 PM, Mihai Draghicioiu wrote: > I suggest either allocating the uri struct in memory or not calling > evhttp_uri_clear at the top of evhttp_uri_parse. When declaring the > uri variable inside a function, it will be uninitialized, so in order > to avoid a crash from evhtt

Re: [Libevent-users] [PATCH] uri parsing helpers

2010-08-08 Thread Mihai Draghicioiu
I suggest either allocating the uri struct in memory or not calling evhttp_uri_clear at the top of evhttp_uri_parse. When declaring the uri variable inside a function, it will be uninitialized, so in order to avoid a crash from evhttp_uri_clear, one has to memset the struct to zero. So I suggest se