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

Function hdr_allocs_parse

parser/hf.h:204–239  ·  view source on GitHub ↗

returns true if the header links allocated memory on parse field */

Source from the content-addressed store, hash-verified

202
203/* returns true if the header links allocated memory on parse field */
204static inline int hdr_allocs_parse(struct hdr_field* hdr)
205{
206 switch(hdr->type){
207 case HDR_VIA_T:
208 case HDR_TO_T:
209 case HDR_FROM_T:
210 case HDR_CONTACT_T:
211 case HDR_ROUTE_T:
212 case HDR_RECORDROUTE_T:
213 case HDR_PATH_T:
214 case HDR_AUTHORIZATION_T:
215 case HDR_EXPIRES_T:
216 case HDR_PROXYAUTH_T:
217 case HDR_EVENT_T:
218 case HDR_ACCEPT_T:
219 case HDR_CONTENTTYPE_T:
220 case HDR_CONTENTDISPOSITION_T:
221 case HDR_DIVERSION_T:
222 case HDR_RPID_T:
223 case HDR_REFER_TO_T:
224 case HDR_SESSION_EXPIRES_T:
225 case HDR_PPI_T:
226 case HDR_PAI_T:
227 case HDR_CALL_INFO_T:
228 case HDR_WWW_AUTHENTICATE_T:
229 case HDR_PROXY_AUTHENTICATE_T:
230 case HDR_ALLOW_T:
231 case HDR_SUPPORTED_T:
232 case HDR_SECURITY_CLIENT_T:
233 case HDR_SECURITY_SERVER_T:
234 case HDR_SECURITY_VERIFY_T:
235 return 1;
236 default:
237 return 0;
238 }
239}
240
241/**
242 * Frees a hdr_field structure.

Callers 1

clean_msg_cloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected