[sr-dev] git:master:00f2cfd1: http_async_client: safety check for cell value
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jul 27 11:35:22 CEST 2017
Module: kamailio
Branch: master
Commit: 00f2cfd1efb81030c705cf4b4f6aa3ac582d3059
URL: https://github.com/kamailio/kamailio/commit/00f2cfd1efb81030c705cf4b4f6aa3ac582d3059
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/00f2cfd1efb81030c705cf4b4f6aa3ac582d3059.diff
Patch: https://github.com/kamailio/kamailio/commit/00f2cfd1efb81030c705cf4b4f6aa3ac582d3059.patch
---
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);
More information about the sr-dev
mailing list