Module: kamailio
Branch: master
Commit: 3696a59f1c6e0c23aea01ae090ca142e11541d62
URL:
https://github.com/kamailio/kamailio/commit/3696a59f1c6e0c23aea01ae090ca142…
Author: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Committer: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Date: 2019-06-13T13:23:31+03:00
ims_registrar_pcscf: fixed dereferencing null pointer "cb->contacts" in
save()
- removed unnecessary debug message
---
Modified: src/modules/ims_registrar_pcscf/save.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3696a59f1c6e0c23aea01ae090ca142…
Patch:
https://github.com/kamailio/kamailio/commit/3696a59f1c6e0c23aea01ae090ca142…
---
diff --git a/src/modules/ims_registrar_pcscf/save.c
b/src/modules/ims_registrar_pcscf/save.c
index fb701e6af6..61a1d7a001 100644
--- a/src/modules/ims_registrar_pcscf/save.c
+++ b/src/modules/ims_registrar_pcscf/save.c
@@ -444,12 +444,6 @@ int save(struct sip_msg* _m, udomain_t* _d, int _cflags) {
cscf_get_p_associated_uri(_m, &public_ids, &num_public_ids, 1);
service_routes = cscf_get_service_route(_m, &num_service_routes, 1);
- {
- struct via_body* vb = cscf_get_ue_via(_m);
- LM_DBG("Save contact with AOR(uri) [%.*s], proto %d, port %d\n",
- cb->contacts->uri.len, cb->contacts->uri.s, vb->proto,
vb->port?vb->port:5060);
- }
-
//update contacts
if (!update_contacts(req, _m, _d, cb->star, expires_hdr, public_ids, num_public_ids,
service_routes, num_service_routes, 0)) {
LM_ERR("failed to update pcontact\n");