| 32 | #define parse_hname(_b,_e,_h) parse_hname2((_b),(_e),(_h)) |
| 33 | |
| 34 | static struct body_part * new_part(void) |
| 35 | { |
| 36 | struct body_part * temp; |
| 37 | |
| 38 | temp = pkg_malloc(sizeof (struct body_part)); |
| 39 | |
| 40 | if (temp == 0) |
| 41 | { |
| 42 | LM_ERR("Unable to allocate memory\n"); |
| 43 | return 0; |
| 44 | } |
| 45 | memset(temp, 0, sizeof (struct body_part)); |
| 46 | |
| 47 | return temp; |
| 48 | }; |
| 49 | |
| 50 | |
| 51 | static char* get_hdr_field_unparsed(char* buf, char* end,struct hdr_field* hdr) |