[sr-dev] git:4.4:a83ca56b: http_client Terminate exported commands list
Daniel-Constantin Mierla
miconda at gmail.com
Thu Sep 29 09:23:29 CEST 2016
Module: kamailio
Branch: 4.4
Commit: a83ca56b8481d7f0a13f6b4ba7aee7f2dbf4bb52
URL: https://github.com/kamailio/kamailio/commit/a83ca56b8481d7f0a13f6b4ba7aee7f2dbf4bb52
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-09-29T09:19:37+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.
- backport of 166e6d80308adb822c9342cf75ac1ca8158e2f78
---
Modified: modules/http_client/http_client.c
---
Diff: https://github.com/kamailio/kamailio/commit/a83ca56b8481d7f0a13f6b4ba7aee7f2dbf4bb52.diff
Patch: https://github.com/kamailio/kamailio/commit/a83ca56b8481d7f0a13f6b4ba7aee7f2dbf4bb52.patch
---
diff --git a/modules/http_client/http_client.c b/modules/http_client/http_client.c
index d05c346..a5aa800 100644
--- a/modules/http_client/http_client.c
+++ b/modules/http_client/http_client.c
@@ -133,6 +133,7 @@ static cmd_export_t cmds[] = {
fixup_free_curl_connect_post,
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}
};
More information about the sr-dev
mailing list