tcpiputils/dhcp/src/DHCPControl.cpp
branchRCL_3
changeset 23 425d8f4f7fa5
parent 0 af10295192d8
--- a/tcpiputils/dhcp/src/DHCPControl.cpp	Wed Sep 01 12:33:58 2010 +0100
+++ b/tcpiputils/dhcp/src/DHCPControl.cpp	Wed Sep 15 00:18:51 2010 +0300
@@ -94,10 +94,10 @@
 	//forced to do this horrible stuff
 	RSocket socket;
 	User::LeaveIfError(socket.Open(iEsock, KAfInet, KSockDatagram, KProtocolInetUdp,iConnection));
+	CleanupClosePushL( socket );
 	// make socket invisible for interface counting
 	User::LeaveIfError(socket.SetOpt(KSoKeepInterfaceUp, KSolInetIp, 0));
 	
-	CleanupClosePushL( socket );
 	TPckgBuf<TSoInet6InterfaceInfo> info;
 	while ( err == KErrNotFound && iConnection.Control(KCOLProvider, KConnGetInterfaceName, name) == KErrNone )
 		{