MacOSX Bugfix: Commandline ip addresses were not initialised properly. added clear_sockaddr() call.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@758 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-10-19 13:43:56 +00:00
parent ef902d52cf
commit 38b1c02101

View File

@ -713,6 +713,9 @@ int RsServer::StartupRetroShare(RsInit *config)
{
struct sockaddr_in laddr;
/* clean sockaddr before setting values (MaxOSX) */
sockaddr_clear(&laddr);
laddr.sin_family = AF_INET;
laddr.sin_port = htons(config->port);