Module: kamailio
Branch: master
Commit: 00f2cfd1efb81030c705cf4b4f6aa3ac582d3059
URL: 
https://github.com/kamailio/kamailio/commit/00f2cfd1efb81030c705cf4b4f6aa3ac582d3059

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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);
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to