telephonyprotocols/pdplayer/src/PDPConfig.cpp
branchRCL_3
changeset 6 fc69e1e37771
parent 3 962e6306d9d2
child 9 2492a6e4aed7
--- a/telephonyprotocols/pdplayer/src/PDPConfig.cpp	Fri Mar 12 15:49:38 2010 +0200
+++ b/telephonyprotocols/pdplayer/src/PDPConfig.cpp	Mon Mar 15 12:45:06 2010 +0200
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -337,6 +337,9 @@
 	if (!fromServer)
 	    {
     	aIapView->GetTextL(KCDTIdWCDMAIPAddr | KCDTIdOutgoingGprsRecord, buf);
+    	TInetAddr addr;
+    	User::LeaveIfError(addr.Input(*buf));
+    	// sending ASCII to MA but checking the validity of the address above.
     	aPdpAddress.Copy(*buf);
     	delete buf;
     	buf = NULL;
@@ -363,10 +366,15 @@
     	if (!fromServer)
     	    {
     	    aIapView->GetTextL(KCDTIdWCDMAIPNameServer1 | KCDTIdOutgoingGprsRecord, buf);
+            TInetAddr addr;
+            User::LeaveIfError(addr.Input(*buf));
+            // sending ASCII to MA but checking the validity of the address above.
     	    aDns1.Copy(*buf);
         	delete buf;
         	buf = NULL;
     	    aIapView->GetTextL(KCDTIdWCDMAIPNameServer2 | KCDTIdOutgoingGprsRecord, buf);
+    	    User::LeaveIfError(addr.Input(*buf));
+            // sending ASCII to MA but checking the validity of the address above.
         	aDns2.Copy(*buf);
     	    delete buf;
         	buf = NULL;
@@ -379,10 +387,15 @@
     	if (!fromServer)
     	    {
     	    aIapView->GetTextL(KCDTIdWCDMAIP6NameServer1 | KCDTIdOutgoingGprsRecord, buf);
-    	    aDns1.Copy(*buf);
+            TInetAddr addr;
+            User::LeaveIfError(addr.Input(*buf));
+            // sending ASCII to MA but checking the validity of the address above.
+            aDns1.Copy(*buf);
     	    delete buf;
     		buf = NULL;
     	    aIapView->GetTextL(KCDTIdWCDMAIP6NameServer2 | KCDTIdOutgoingGprsRecord, buf);
+            User::LeaveIfError(addr.Input(*buf));
+            // sending ASCII to MA but checking the validity of the address above.
           	aDns2.Copy(*buf);
         	delete buf;
             buf = NULL;