From b356c73494da7ef53447a5c7615bebeb8eb9a9e2 Mon Sep 17 00:00:00 2001 From: Federico Cabiddu Date: Tue, 26 Sep 2017 15:32:20 +0200 Subject: [PATCH] http_async_client: null terminate the request id in the callback --- src/modules/http_async_client/async_http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/http_async_client/async_http.c b/src/modules/http_async_client/async_http.c index d86f8a68a02..000659cd295 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();