int numread;
while(n<bytes) {
// coverity[store_truncates_time_t]
- int res=waitForData(d_sock, timeoutsec - (time(nullptr) - start));
+ int res=waitForData(d_sock, static_cast<int>(timeoutsec - (time(nullptr) - start)));
if(res<0)
throw ResolverException("Reading data from remote nameserver over TCP: "+stringerror());
if(!res)
}
g_initialAllowFrom = allowFrom;
- broadcastFunction([=] { return pleaseSupplantAllowFrom(std::move(allowFrom)); });
+ // coverity[copy_contructor_call] maybe this can be avoided, but be careful as pointers get passed to other threads
+ broadcastFunction([=] { return pleaseSupplantAllowFrom(allowFrom); });
auto allowNotifyFrom = parseACL("allow-notify-from-file", "allow-notify-from", log);
g_initialAllowNotifyFrom = allowNotifyFrom;
- broadcastFunction([=] { return pleaseSupplantAllowNotifyFrom(std::move(allowNotifyFrom)); });
+ // coverity[copy_contructor_call] maybe this can be avoided, but be careful as pointers get passed to other threads
+ broadcastFunction([=] { return pleaseSupplantAllowNotifyFrom(allowNotifyFrom); });
l_initialized = true;
}