Fix windows compilation

This commit is contained in:
Gioacchino Mazzurco 2019-05-13 09:52:30 +02:00
parent 720d5ea8a6
commit bde6235758
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -1274,14 +1274,16 @@ bool p3Peers::parseShortInvite(
case RsShortInviteFieldType::EXT4_LOCATOR:
{
sockaddr_in tExtAddr;
RS_SERIAL_PROCESS(tExtAddr.sin_addr.s_addr);
uint32_t t4Addr = 0;
RS_SERIAL_PROCESS(t4Addr);
if(!ctx.mOk)
{
RsWarn() << __PRETTY_FUNCTION__ << " failed to parse IPv4"
<< std::endl;
break;
}
sockaddr_in tExtAddr;
tExtAddr.sin_addr.s_addr = t4Addr;
details.extAddr = rs_inet_ntoa(tExtAddr.sin_addr);
RS_SERIAL_PROCESS(details.extPort);