mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fix a null pointer bug
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2164 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8b6f91e144
commit
906cc25379
@ -1026,7 +1026,11 @@ error:
|
||||
|
||||
char* CUPnPControlPoint::getInternalIpAddress()
|
||||
{
|
||||
return UpnpGetServerIpAddress();
|
||||
char * addr = UpnpGetServerIpAddress();
|
||||
if (addr = NULL) {
|
||||
addr = "127.0.0.1";
|
||||
}
|
||||
return addr;
|
||||
}
|
||||
|
||||
CUPnPControlPoint::~CUPnPControlPoint()
|
||||
|
Loading…
Reference in New Issue
Block a user