<p></p>
<p><b>@wkampich</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2675#discussion_r605169241">src/modules/lost/functions.c</a>:</p>
<pre style='color:#555'>>              LM_ERR("lost request failed\n");
                goto err;
        }
 
        LM_DBG("findService request: [%.*s]\n", req.len, req.s);
 
        /* send findService request to mapping server - HTTP POST */
-       curlres = httpapi.http_connect(_m, &con, NULL, &ret, mtlost, &req);
+       if(naptr) {
+               /* copy url */
+               len = 0;
+               urlrep = lost_copy_string(url, &len);
</pre>
<p>curl requires a zero terminated string as url, which is not added by the http_client API query function <code>http_client_query_c</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2675#discussion_r605169241">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIWKD7O7SEH7KNNVRLTGN22BANCNFSM4ZGSJGLQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMQ6L244TR5NQVZAU3TGN22BA5CNFSM4ZGSJGL2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEVFLAXQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2675#discussion_r605169241",
"url": "https://github.com/kamailio/kamailio/pull/2675#discussion_r605169241",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>