MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / build_hf_struct

Function build_hf_struct

modules/exec/exec_hf.c:300–318  ·  view source on GitHub ↗

create ordered HF structure in pkg memory */

Source from the content-addressed store, hash-verified

298
299/* create ordered HF structure in pkg memory */
300static int build_hf_struct(struct sip_msg *msg, struct hf_wrapper **list)
301{
302 struct hdr_field *h;
303
304 *list=0;
305 /* create ordered header-field structure */
306 for (h=msg->headers; h; h=h->next) {
307 if (!insert_hf(list,h)) {
308 LM_ERR("insert_hf failed\n");
309 goto error00;
310 }
311 }
312 return 1;
313error00:
314 release_hf_struct(*list);
315 *list=0;
316 return 0;
317
318}
319
320/* create env vars in malloc memory */
321static int create_vars(struct hf_wrapper *list, int offset)

Callers 1

set_envFunction · 0.85

Calls 2

release_hf_structFunction · 0.85
insert_hfFunction · 0.70

Tested by

no test coverage detected