From 52ef72d7614f23fd398b0b203267fe16020adb95 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Sat, 3 Mar 2018 01:39:50 +0100 Subject: [PATCH] Fix p3PeerMgrIMPL::UpdateOwnAddress local address Due to a regression introduced in dedfcb2b603da0f03547b7bb0c63164f10558f76 the local address was not updated correctly causing part of RS networking being stuck and printing lot of invalid sockaddr_storage messages, this commit fix the regression --- libretroshare/src/pqi/p3peermgr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/pqi/p3peermgr.cc b/libretroshare/src/pqi/p3peermgr.cc index 1927b457e..3b81d903d 100644 --- a/libretroshare/src/pqi/p3peermgr.cc +++ b/libretroshare/src/pqi/p3peermgr.cc @@ -1308,7 +1308,7 @@ bool p3PeerMgrIMPL::UpdateOwnAddress( const sockaddr_storage& pLocalAddr, } } - sockaddr_storage_copy(mOwnState.localaddr, localAddr); + sockaddr_storage_copy(localAddr, mOwnState.localaddr); }