[sr-dev] git:5.2:b1bb24d3: evapi: use local allocated buffer to get data parameter for event relay

Henning Westerholt hw at skalatan.de
Fri Jan 24 16:55:38 CET 2020


Module: kamailio
Branch: 5.2
Commit: b1bb24d3639c2869f825dd692a9b1346d1bb30b5
URL: https://github.com/kamailio/kamailio/commit/b1bb24d3639c2869f825dd692a9b1346d1bb30b5

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-01-24T16:39:55+01:00

evapi: use local allocated buffer to get data parameter for event relay

- use system malloc given that the data can be passed from jsonrpcs,
which uses system malloc as well
- try to grow the internall buffer as needed based on estimated size of
output for the data parameter

(cherry picked from commit 63334e312d60a5d6a6470b0067c29db672d08c7c)

---

Modified: src/modules/evapi/evapi_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/b1bb24d3639c2869f825dd692a9b1346d1bb30b5.diff
Patch: https://github.com/kamailio/kamailio/commit/b1bb24d3639c2869f825dd692a9b1346d1bb30b5.patch




More information about the sr-dev mailing list