diff -r 5fae379060a7 -r bf6a71c50e42 genericopenlibs/openenvcore/backend/src/syscall/handlenms.cpp --- a/genericopenlibs/openenvcore/backend/src/syscall/handlenms.cpp Fri Jun 11 15:26:22 2010 +0300 +++ b/genericopenlibs/openenvcore/backend/src/syscall/handlenms.cpp Wed Aug 18 11:27:44 2010 +0300 @@ -146,7 +146,7 @@ /* Get the default RConnection instance and use it if configured. NOTE: This RConnection, if configured, would be created using the socket server on backend. The same server has to be used here */ - RConnection defConnection = Backend()->GetDefaultConnection(); + RConnection& defConnection = Backend()->GetDefaultConnection(); if(defConnection.SubSessionHandle() != 0) { err = hr.Open(ss, AF_INET, IPPROTO_UDP,defConnection); @@ -324,7 +324,7 @@ /* Get the default RConnection instance and use it if configured. NOTE: This RConnection, if configured, would be created using the socket server on backend. The same server has to be used here */ - RConnection defConnection = Backend()->GetDefaultConnection(); + RConnection& defConnection = Backend()->GetDefaultConnection(); if(defConnection.SubSessionHandle() != 0) { err=r.Open(ss, format, IPPROTO_UDP, defConnection); @@ -418,7 +418,7 @@ /* Get the default RConnection instance and use it if configured. NOTE: This RConnection, if configured, would be created using the socket server on backend. The same server has to be used here */ - RConnection defConnection = Backend()->GetDefaultConnection(); + RConnection& defConnection = Backend()->GetDefaultConnection(); if (defConnection.SubSessionHandle() != 0) { err = r.Open(ss, AF_INET, IPPROTO_UDP, defConnection); @@ -637,7 +637,7 @@ /* Get the default RConnection instance and use it if configured. NOTE: This RConnection, if configured, would be created using the socket server on backend. The same server has to be used here */ - RConnection defConnection = Backend()->GetDefaultConnection(); + RConnection& defConnection = Backend()->GetDefaultConnection(); if(defConnection.SubSessionHandle() != 0) err = resolver.Open(sockServ, KAfInet, KProtocolInetUdp, defConnection); else