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

Function dns_res_copy

resolve.c:2119–2134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2117
2118
2119struct dns_node *dns_res_copy(struct dns_node *s)
2120{
2121 struct dns_node *d;
2122
2123 d = dns_node_copy(s);
2124 if (d==NULL)
2125 return 0;
2126 if (s->kids) {
2127 d->kids = dns_node_copy(s->kids);
2128 if (d->kids==NULL) {
2129 shm_free(d);
2130 return 0;
2131 }
2132 }
2133 return d;
2134}

Callers 2

clone_proxyFunction · 0.85
shm_clone_proxyFunction · 0.85

Calls 2

dns_node_copyFunction · 0.85
shm_freeFunction · 0.85

Tested by

no test coverage detected