Module: kamailio Branch: 5.0 Commit: 9312498fad89297bdd37f1a3bdd32df5b6970358 URL: https://github.com/kamailio/kamailio/commit/9312498fad89297bdd37f1a3bdd32df5b6970358
Author: Federico Cabiddu <[email protected]> Committer: Federico Cabiddu <[email protected]> Date: 2017-09-26T15:34:11+02:00 http_async_client: null terminate the request id in the callback (cherry picked from commit b356c73494da7ef53447a5c7615bebeb8eb9a9e2) --- Modified: src/modules/http_async_client/async_http.c --- Diff: https://github.com/kamailio/kamailio/commit/9312498fad89297bdd37f1a3bdd32df5b6970358.diff Patch: https://github.com/kamailio/kamailio/commit/9312498fad89297bdd37f1a3bdd32df5b6970358.patch --- diff --git a/src/modules/http_async_client/async_http.c b/src/modules/http_async_client/async_http.c index 5057908478..a2ef7cfca9 100644 --- a/src/modules/http_async_client/async_http.c +++ b/src/modules/http_async_client/async_http.c @@ -192,6 +192,8 @@ void async_http_cb(struct http_m_reply *reply, void *param) aq = param; strncpy(q_id, aq->id, strlen(aq->id)); + q_id[strlen(aq->id)] = '\0'; + act = (cfg_action_t*)aq->param; cfg_update(); _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
