- updated code to protect against null pointers and uninitialized values and threading issues

This commit is contained in:
Mark Vejvoda
2013-02-04 08:30:43 +00:00
parent d02f91d2e0
commit f87b8b6ee2
35 changed files with 332 additions and 188 deletions

View File

@@ -2465,7 +2465,7 @@ int UPNP_Tools::upnp_init(void *param) {
}
dev = devlist;
while (dev) {
while (dev && dev->st) {
if (strstr(dev->st, "InternetGatewayDevice")) {
break;
}