Module: kamailio Branch: master Commit: 0f8a879a212bd114aaa261a58e256f7fa51042c8 URL: https://github.com/kamailio/kamailio/commit/0f8a879a212bd114aaa261a58e256f7fa51042c8
Author: Tsvetomir Dimitrov <tsv.dimit...@gmail.com> Committer: Tsvetomir Dimitrov <tsv.dimit...@gmail.com> Date: 2018-05-09T10:12:58+03:00 ims_registrar_pcscf: Update tmp security only if there are sec-agree params in the message --- Modified: src/modules/ims_registrar_pcscf/save.c --- Diff: https://github.com/kamailio/kamailio/commit/0f8a879a212bd114aaa261a58e256f7fa51042c8.diff Patch: https://github.com/kamailio/kamailio/commit/0f8a879a212bd114aaa261a58e256f7fa51042c8.patch --- diff --git a/src/modules/ims_registrar_pcscf/save.c b/src/modules/ims_registrar_pcscf/save.c index 0edf7bd808..39dfe4d589 100644 --- a/src/modules/ims_registrar_pcscf/save.c +++ b/src/modules/ims_registrar_pcscf/save.c @@ -354,9 +354,11 @@ int save_pending(struct sip_msg* _m, udomain_t* _d) { } // Update security parameters - if(ul.update_temp_security(_d, sec_params->type, sec_params, pcontact) != 0) - { - LM_ERR("Error updating temp security\n"); + if(sec_params) { + if(ul.update_temp_security(_d, sec_params->type, sec_params, pcontact) != 0) + { + LM_ERR("Error updating temp security\n"); + } } ul.unlock_udomain(_d, &ci.via_host, ci.via_port, ci.via_prot); _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev