Skip to content
Snippets Groups Projects
Commit 0cd2cabe authored by tho's avatar tho
Browse files

Socket/Protocols/BSDSocketProtocol: minor bugfix

parent 16b35014
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ prefix_ std::pair<bool,unsigned> senf::BSDSocketProtocol::linger()
{
struct linger ling;
socklen_t len = sizeof(ling);
::memset(&ling,sizeof(ling),0);
::memset(&ling, 0, sizeof(ling));
if (::getsockopt(fd(),SOL_SOCKET,SO_LINGER,&ling,&len) < 0)
SENF_THROW_SYSTEM_EXCEPTION("");
return std::make_pair(ling.l_onoff, ling.l_linger);
......@@ -147,7 +147,7 @@ prefix_ void senf::AddressableBSDSocketProtocol::reuseaddr(bool value)
#undef prefix_
//#include "BSDSocketProtocol.mpp"
// Local Variables:
// mode: c++
// fill-column: 100
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment