mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-13 01:10:24 +00:00
try fixing whatever memory corruption happens
This commit is contained in:
parent
21e20dde18
commit
b001d1f96b
@ -108,13 +108,9 @@ llarp_dotlokilookup_checkQuery(void *u, uint64_t orig, uint64_t left)
|
|||||||
dnsd_query_hook_response *response = new dnsd_query_hook_response;
|
dnsd_query_hook_response *response = new dnsd_query_hook_response;
|
||||||
response->dontLookUp = true;
|
response->dontLookUp = true;
|
||||||
response->dontSendResponse = false;
|
response->dontSendResponse = false;
|
||||||
// llarp::Addr test(*free_private->hostResult.getSockAddr());
|
|
||||||
// llarp::LogInfo("IP Test: ", test);
|
|
||||||
|
|
||||||
llarp::LogInfo("Saving ", qr->request->question.name);
|
|
||||||
loki_tld_lookup_cache[qr->request->question.name] = response;
|
|
||||||
// we can't delete response now...
|
// we can't delete response now...
|
||||||
sockaddr_in saddr;
|
sockaddr_in saddr;
|
||||||
|
saddr.sin_family = AF_INET;
|
||||||
saddr.sin_addr.s_addr = llarp::xhtonl(foundAddr).n;
|
saddr.sin_addr.s_addr = llarp::xhtonl(foundAddr).n;
|
||||||
// FIXME: flush cache to disk
|
// FIXME: flush cache to disk
|
||||||
// on crash we'll need to bring up all the same IPs we assigned before...
|
// on crash we'll need to bring up all the same IPs we assigned before...
|
||||||
|
Loading…
Reference in New Issue
Block a user