From: tho Date: Thu, 12 Feb 2009 16:05:49 +0000 (+0000) Subject: Socket/Protocols/BSDSocketProtocol: minor bugfix X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=55c979a770543e8086a9828f5ec4576a7c7a9384;p=senf.git Socket/Protocols/BSDSocketProtocol: minor bugfix git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1118 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/Protocols/BSDSocketProtocol.cc b/Socket/Protocols/BSDSocketProtocol.cc index cfd06b5..4524cae 100644 --- a/Socket/Protocols/BSDSocketProtocol.cc +++ b/Socket/Protocols/BSDSocketProtocol.cc @@ -41,7 +41,7 @@ prefix_ std::pair 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