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:
joss17 2010-01-31 19:45:08 +00:00
parent 8b6f91e144
commit 906cc25379

View File

@ -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()