[sr-dev] git:master:166e6d80: http_client Terminate exported commands list
Martin Larsson
martin.larsson at verisure.com
Mon Sep 26 16:47:08 CEST 2016
Module: kamailio
Branch: master
Commit: 166e6d80308adb822c9342cf75ac1ca8158e2f78
URL: https://github.com/kamailio/kamailio/commit/166e6d80308adb822c9342cf75ac1ca8158e2f78
Author: Martin Larsson <martin.larsson at verisure.com>
Committer: Martin Larsson <martin.larsson at 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/166e6d80308adb822c9342cf75ac1ca8158e2f78.diff
Patch: https://github.com/kamailio/kamailio/commit/166e6d80308adb822c9342cf75ac1ca8158e2f78.patch
---
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}
};
More information about the sr-dev
mailing list