We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a72d02 commit 65d92fdCopy full SHA for 65d92fd
mythtv/libs/libmythupnp/ssdp.cpp
@@ -325,7 +325,8 @@ void SSDP::ProcessData( MSocketDevice *pSocket )
325
//
326
// TODO: We may want to restrict this to the same subnet as the server
327
// for added security
328
- if (((peerAddress.protocol() == QAbstractSocket::IPv4Protocol) &&
+ if (!peerAddress.isNull() && (peerAddress != QHostAddress::Null) &&
329
+ ((peerAddress.protocol() == QAbstractSocket::IPv4Protocol) &&
330
(!peerAddress.isInSubnet(QHostAddress("172.16.0.0"), 12) &&
331
!peerAddress.isInSubnet(QHostAddress("192.168.0.0"), 16) &&
332
!peerAddress.isInSubnet(QHostAddress("10.0.0.0"), 8))) ||
0 commit comments