Prevent segfault when receiving a STUN connection request while not hosting, refs 61261d14fc
/ D364.
This was SVN commit r21928.
This commit is contained in:
parent
039637cf13
commit
dd57ba436d
@ -789,6 +789,8 @@ bool XmppClient::handleIq(const glooxwrapper::IQ& iq)
|
||||
|
||||
if (g_NetServer)
|
||||
g_NetServer->OnLobbyAuth(iq.from().username(), lobbyAuth->m_Token.to_string());
|
||||
else
|
||||
LOGERROR("Received lobby authentication request, but not hosting currently!");
|
||||
}
|
||||
}
|
||||
else if (iq.subtype() == gloox::IQ::Error)
|
||||
@ -1224,5 +1226,11 @@ void XmppClient::handleSessionInitiation(const glooxwrapper::Jingle::Session::Ji
|
||||
return;
|
||||
}
|
||||
|
||||
if (!g_NetServer)
|
||||
{
|
||||
LOGERROR("Received STUN connection request, but not hosting currently!");
|
||||
return;
|
||||
}
|
||||
|
||||
g_NetServer->SendHolePunchingMessage(candidate.ip.to_string(), candidate.port);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user