Commit 05504fc9 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] create a real instance of IOMessage and pass it to lookup DNS callback

some compilers complained about it if we pass a temporary, as they try to
copy it (IOMessage is nonopyable)
this should fix some error reports from buildbots
parent 70994c68
......@@ -107,8 +107,8 @@ SyncUDPServer::handleRead(const asio::error_code& ec, const size_t length) {
resume_called_ = false;
// Call the actual lookup
(*lookup_callback_)(IOMessage(data_, length, *udp_socket_, udp_endpoint_),
query_, answer_, output_buffer_, this);
const IOMessage message(data_, length, *udp_socket_, udp_endpoint_);
(*lookup_callback_)(message, query_, answer_, output_buffer_, this);
if (!resume_called_) {
isc_throw(isc::Unexpected,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment