genericopenlibs/openenvcore/backend/src/syscall/handlenms.cpp
changeset 52 bf6a71c50e42
parent 0 e4d67989cc36
child 54 4332f0f7be53
--- 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