Merge pull request #4684 from GregorR/natt-uninitialized

Fixed a bug failing to check initialization in non-UPnP-supporting setups
This commit is contained in:
bparker06 2017-02-21 22:09:12 -05:00 committed by GitHub
commit 8eb32fa824

View File

@ -106,7 +106,7 @@ static bool natt_open_port(struct natt_status *status,
int r;
/* if NAT traversal is uninitialized or unavailable, oh well */
if (!urls.controlURL[0])
if (!urls.controlURL || !urls.controlURL[0])
return false;
/* figure out the internal info */