[sr-dev] [kamailio/kamailio] ims: fix a crash with contact parsing (PR #3032)

kristiyan-peychev-flolive notifications at github.com
Thu Feb 17 09:25:16 CET 2022


@kristiyan-peychev-flolive commented on this pull request.



>  			if(ptr->type == HDR_CONTACT_T) {
-				if(ptr->parsed == 0) {
-					if(parse_contact(ptr) < 0) {
-						LM_DBG("error parsing contacts [%.*s]\n", ptr->body.len,
-								ptr->body.s);
-					}
+				ptr->parsed = NULL;
+				if(parse_contact(ptr) < 0) {
+					LM_ERR("error parsing contacts [%.*s]\n", ptr->body.len,
+							ptr->body.s);
 				}
 			}
 			ptr = ptr->next;

Thank you for pointing this out, I had forgotten about it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3032#discussion_r808783363
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/3032/review/885586757 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220217/82353234/attachment-0001.htm>


More information about the sr-dev mailing list