diff options
Diffstat (limited to 'tests/Reactor_Performance_Test.cpp')
-rw-r--r-- | tests/Reactor_Performance_Test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Reactor_Performance_Test.cpp b/tests/Reactor_Performance_Test.cpp index bdb4e51cbac..975c8c34678 100644 --- a/tests/Reactor_Performance_Test.cpp +++ b/tests/Reactor_Performance_Test.cpp @@ -360,7 +360,8 @@ run_main (int argc, ACE_TCHAR *argv[]) ACE_INET_Addr server_addr; // Bind acceptor to any port and then find out what the port was. - if (acceptor.open (ACE_sap_any_cast (const ACE_INET_Addr &)) == -1 + ACE_INET_Addr local_addr (ACE_sap_any_cast (const ACE_INET_Addr &)); + if (acceptor.open (local_addr) == -1 || acceptor.acceptor ().get_local_addr (server_addr) == -1) ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("(%t) %p\n"), |