Explorar el Código

lib/ims: fixed parsing of multiple contact headers

jaybeepee hace 9 años
padre
commit
5c3b29f51d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/ims/ims_getters.c

+ 1 - 1
lib/ims/ims_getters.c

@@ -96,7 +96,7 @@ contact_body_t *cscf_parse_contacts(struct sip_msg *msg)
 		ptr = msg->contact;
 		while(ptr) {
 			if (ptr->type == HDR_CONTACT_T) {
-				if (msg->contact->parsed==0){					
+				if (ptr->parsed==0){					
 					if (parse_contact(ptr)<0){
 						LM_DBG("error parsing contacts [%.*s]\n",
 								ptr->body.len,ptr->body.s);