[sr-dev] [kamailio/kamailio] sipcapture: expose pv $hep(src_ip) (#879)

Daniel-Constantin Mierla notifications at github.com
Sun Dec 4 10:03:46 CET 2016


miconda commented on this pull request.

the declaraton of buf_ip has to be static because you return the pointer to it. Right now it is allocated on the stack and the pointer becomes invalid when the function finishes its execution. It has to be like:

```
static char buf_ip ...
```

Alternative is to use the core buffer for pvs, that you can retrieve with pv_get_buffer()




-- 
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/879#pullrequestreview-11291197
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20161204/44490e87/attachment.html>


More information about the sr-dev mailing list