On 5/4/06, Thomas Rosenblatt <[EMAIL PROTECTED]> wrote:
I think , Ihave found where the problem come from ... Tell me if i'm wrong:
In sres.c, when you do a sres_get_domain() or a sres_get_string(),
the memory for the string is allocated is res->res_home... but it should
be allocated in res->res_cache->cache_home...
Indeed, when the resolver is destroyed, the strings from records are
freed, because they are allocated in res_home and not cache_home!!!!

*Blush*. Thanks for hunting down this bug.

I pushed patches hopefully solving it to darcs:

Thu May  4 22:02:44 EEST 2006  [EMAIL PROTECTED]
 * test_sresolv.v: added more tests for A6 record parsing.

Thu May  4 22:02:17 EEST 2006  [EMAIL PROTECTED]
 * sres.c, sres_cache.c: records are now allocated in a single chunk.

 Bug hunted down by Thomas Rosenblatt: strings and domains belonging to
 record were allocated from resolver home, not from cache home.


--
Pekka.Pessi mail at nokia.com


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to