Module: kamailio Branch: master Commit: 00f2cfd1efb81030c705cf4b4f6aa3ac582d3059 URL: https://github.com/kamailio/kamailio/commit/00f2cfd1efb81030c705cf4b4f6aa3ac...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2017-07-27T11:32:56+02:00
http_async_client: safety check for cell value
---
Modified: src/modules/http_async_client/http_multi.c
---
Diff: https://github.com/kamailio/kamailio/commit/00f2cfd1efb81030c705cf4b4f6aa3ac... Patch: https://github.com/kamailio/kamailio/commit/00f2cfd1efb81030c705cf4b4f6aa3ac...
---
diff --git a/src/modules/http_async_client/http_multi.c b/src/modules/http_async_client/http_multi.c index 5d07a9d29a..7e086e4b03 100644 --- a/src/modules/http_async_client/http_multi.c +++ b/src/modules/http_async_client/http_multi.c @@ -314,7 +314,9 @@ void reply_error(struct http_m_cell *cell) reply->error[0] = '\0'; }
- cell->cb(reply, cell->param); + if (cell) { + cell->cb(reply, cell->param); + }
pkg_free(reply);