X-Git-Url: http://g0dil.de/git?p=senf.git;a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FINet%2FINet4Address.cc;fp=senf%2FSocket%2FProtocols%2FINet%2FINet4Address.cc;h=d37f54fd93111a1eadc79b1a7c06435dec160a39;hp=618bdb21e82213d9c678f0dc8ad0f40be80a0f5b;hb=b2fff1b50e0010fdad28cb638987cbf88032e30e;hpb=c305d6b970e5952fe006270c7184b8bbb10ba2ee diff --git a/senf/Socket/Protocols/INet/INet4Address.cc b/senf/Socket/Protocols/INet/INet4Address.cc index 618bdb2..d37f54f 100644 --- a/senf/Socket/Protocols/INet/INet4Address.cc +++ b/senf/Socket/Protocols/INet/INet4Address.cc @@ -39,7 +39,6 @@ #if defined(_REENTRANT) && !defined(__GLIBC__) #include #endif -#include //#include "INet4Address.mpp" #define prefix_ @@ -137,7 +136,7 @@ prefix_ senf::INet4Network::INet4Network(std::string const & s) if (i == std::string::npos) throw AddressSyntaxException(s); try { - prefix_len_ = boost::lexical_cast(std::string(s,i+1)); + prefix_len_ = prefix_len_checked(boost::lexical_cast(std::string(s,i+1))); } catch (boost::bad_lexical_cast const &) { throw AddressSyntaxException(s); }