Commit 3fcadc1a authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[805] recovered missing condition check; a minor style fix (folded a long line)

parent 9d4ae52d
......@@ -88,10 +88,10 @@ struct UDPServer::Data {
LOG_DEBUG(logger, DBGLVL_TRACE_BASIC, ASIODNS_FD_ADD_UDP).arg(fd);
try {
socket_.reset(new udp::socket(io_service));
socket_->assign(AF_INET6 ? udp::v6() : udp::v4(), fd);
socket_->assign(af == AF_INET6 ? udp::v6() : udp::v4(), fd);
} catch (const std::exception& exception) {
// Whatever the thing throws, it is something from ASIO and we convert
// it
// Whatever the thing throws, it is something from ASIO and we
// convert it
isc_throw(IOError, exception.what());
}
}
......
Supports Markdown
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