Module: kamailio Branch: master Commit: 166e6d80308adb822c9342cf75ac1ca8158e2f78 URL: https://github.com/kamailio/kamailio/commit/166e6d80308adb822c9342cf75ac1ca8...
Author: Martin Larsson martin.larsson@verisure.com Committer: Martin Larsson martin.larsson@verisure.com Date: 2016-09-26T15:09:21+02:00
http_client Terminate exported commands list
The list of exported functions was not terminated, which caused a segfault in find_mod_export_record() when reading outside the list.
---
Modified: modules/http_client/http_client.c
---
Diff: https://github.com/kamailio/kamailio/commit/166e6d80308adb822c9342cf75ac1ca8... Patch: https://github.com/kamailio/kamailio/commit/166e6d80308adb822c9342cf75ac1ca8...
---
diff --git a/modules/http_client/http_client.c b/modules/http_client/http_client.c index 5e8fc24..de42bc9 100644 --- a/modules/http_client/http_client.c +++ b/modules/http_client/http_client.c @@ -142,6 +142,7 @@ static cmd_export_t cmds[] = { fixup_free_curl_get_redirect, REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE}, {"bind_http_client", (cmd_function)bind_httpc_api, 0, 0, 0, 0}, + {0,0,0,0,0,0} };