From: JINMEI Tatuya Date: Wed, 4 Jan 2012 23:24:43 +0000 (-0800) Subject: [805] recovered missing condition check; a minor style fix (folded a long line) X-Git-Tag: trac2351_base~304^2~16^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fcadc1a85ca56620c418e8b18cf43e43afbe98d;p=thirdparty%2Fkea.git [805] recovered missing condition check; a minor style fix (folded a long line) --- diff --git a/src/lib/asiodns/udp_server.cc b/src/lib/asiodns/udp_server.cc index 001fdd5989..b8519d3332 100644 --- a/src/lib/asiodns/udp_server.cc +++ b/src/lib/asiodns/udp_server.cc @@ -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()); } }