Fix a segfault from a null pointer dereference in netplay.c upnp_init(). (Fixes bug #1099)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8497 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
b142336188
commit
193c8d142b
|
@ -1847,7 +1847,7 @@ static int upnp_init(void *asdf)
|
|||
}
|
||||
freeUPNPDevlist(devlist);
|
||||
|
||||
if (urls.controlURL[0] == '\0')
|
||||
if (!urls.controlURL || urls.controlURL[0] == '\0')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue