fix previous commit 53804c3db
allow calling UPNP_GetValidIGD() with lanaddr=NULL
This commit is contained in:
parent
53804c3db3
commit
6e8fda2358
|
@ -587,7 +587,8 @@ UPNP_GetValidIGD(struct UPNPDev * devlist,
|
|||
{
|
||||
desc[i].is_igd = 1;
|
||||
n_igd++;
|
||||
strncpy(lanaddr, myLanAddr, lanaddrlen);
|
||||
if(lanaddr)
|
||||
strncpy(lanaddr, myLanAddr, lanaddrlen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue