diff --git a/libretroshare/src/upnp/UPnPBase.cpp b/libretroshare/src/upnp/UPnPBase.cpp index 827195419..1cf5a7687 100644 --- a/libretroshare/src/upnp/UPnPBase.cpp +++ b/libretroshare/src/upnp/UPnPBase.cpp @@ -1027,7 +1027,7 @@ error: char* CUPnPControlPoint::getInternalIpAddress() { char * addr = UpnpGetServerIpAddress(); - if (addr = NULL) { + if (addr == NULL) { addr = "127.0.0.1"; } return addr;