| 429 | |
| 430 | |
| 431 | int delete_body_part(struct sip_msg *msg, struct body_part *part) |
| 432 | { |
| 433 | if (msg->body==NULL) { |
| 434 | LM_BUG("deleting a body part, but body not found/parsed :-/\n"); |
| 435 | return -1; |
| 436 | } |
| 437 | |
| 438 | /* mark the part as deleted */ |
| 439 | part->flags |= SIP_BODY_PART_FLAG_DELETED; |
| 440 | |
| 441 | msg->body->updated_part_count--; |
| 442 | |
| 443 | return 0; |
| 444 | } |
| 445 | |
| 446 | |
| 447 | void free_sip_body(struct sip_msg_body *body) |
no outgoing calls
no test coverage detected