supl/locationsuplfw/gateway/src/epos_csuplnetinitiatedsession.cpp
branchRCL_3
changeset 6 f3bd2a0973b9
parent 0 667063e416a2
child 8 6fcbaa43369c
--- a/supl/locationsuplfw/gateway/src/epos_csuplnetinitiatedsession.cpp	Fri Feb 19 23:14:27 2010 +0200
+++ b/supl/locationsuplfw/gateway/src/epos_csuplnetinitiatedsession.cpp	Fri Mar 12 15:44:22 2010 +0200
@@ -61,14 +61,18 @@
     TInt majorVersion = KErrNotFound;
     TInt err = aSessnMgr.GetSUPLMessageVersionL(majorVersion,aClientBuf->Des());
     
-    if(majorVersion == 1)
+    if(majorVersion == 2)
+    	suplService = RSuplTerminalSubSession::ESUPL_2_0;
+    else 
     	suplService = RSuplTerminalSubSession::ESUPL_1_0;
-    else 
-    	suplService = RSuplTerminalSubSession::ESUPL_2_0;
     
     iSuplSession = aSessnMgr.CreateNewSessionL(aReqType, 0, suplService );
+    
+    if (iSuplSession)
+    {
     iSuplSession->SetSUPLVersion(majorVersion);
     iSuplSessnReq = CSuplSessionRequest::NewL(aSessnMgr, iSuplSession, aServer);
+    }
   
 
     }