[sr-dev] [kamailio/kamailio] http_client: Fixed bug, so user-agent header now is added to HTTP request (#674)

Daniel-Constantin Mierla notifications at github.com
Fri Jun 17 11:19:21 CEST 2016


as_asciiz() allocs pkg memory, so if it is not only one at startup, but every time for each http query, then this commit is introducing a pkg meamory leak.

Note that the modparams are zero-terminated strings, even if they are stored in str struct, so the .s field can be used for functions expecting zero-terminated strings.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/674#issuecomment-226721826
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160617/38ca5701/attachment.html>


More information about the sr-dev mailing list