From 38b1c02101f8d3a8f4149835795a274a010e3e40 Mon Sep 17 00:00:00 2001 From: drbob Date: Sun, 19 Oct 2008 13:43:56 +0000 Subject: [PATCH] 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 --- libretroshare/src/rsserver/p3face-startup.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libretroshare/src/rsserver/p3face-startup.cc b/libretroshare/src/rsserver/p3face-startup.cc index 0c4fd119f..e975add99 100644 --- a/libretroshare/src/rsserver/p3face-startup.cc +++ b/libretroshare/src/rsserver/p3face-startup.cc @@ -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);