Changeset 5727
- Timestamp:
- Jan 17, 2018 11:30:52 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_msg.c
r5701 r5727 27 27 #include <pj/pool.h> 28 28 #include <pj/assert.h> 29 #include <pj/log.h> 29 30 #include <pjlib-util/string.h> 30 31 … … 460 461 for (hdr=msg->hdr.next; hdr!=&msg->hdr; hdr=hdr->next) { 461 462 len = pjsip_hdr_print_on(hdr, p, end-p); 462 if (len < 0) 463 return -1; 463 if (len < 0) { 464 if (len == -2) { 465 PJ_LOG(5, ("sip_msg", "Header with no vptr encountered!! "\ 466 "Current buffer: %.*s", (int)(p-buf), buf)); 467 } 468 return len; 469 } 464 470 465 471 if (len > 0) { … … 577 583 { 578 584 pjsip_hdr *hdr = (pjsip_hdr*) hdr_ptr; 585 PJ_ASSERT_RETURN(hdr->vptr, -2); 579 586 return (*hdr->vptr->print_on)(hdr_ptr, buf, len); 580 587 }
Note: See TracChangeset
for help on using the changeset viewer.