Skip to content
Snippets Groups Projects
Commit 16b35014 authored by tho's avatar tho
Browse files

Socket/Protocols/INet/MulticastSocketProtocol: minor bugfix

parent 37f3b39e
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ prefix_ void senf::MulticastSocketProtocol::mcIface(std::string const & iface)
const
{
struct ip_mreqn mreqn;
::memset(&mreqn,sizeof(mreqn),0);
::memset(&mreqn, 0, sizeof(mreqn));
if (!iface.empty()) {
mreqn.imr_ifindex = if_nametoindex(iface.c_str());
if (mreqn.imr_ifindex == 0)
......@@ -372,7 +372,7 @@ prefix_ void senf::INet6MulticastSocketProtocol::mcLeaveSSMSource(INet6Address c
#undef prefix_
//#include "MulticastSocketProtocol.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