@alexyosifov 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;
You have to remove this operation or the one into 'for' because now you have a double-pointer assignment operation.