tcpiputils/dhcp/src/DHCPControl.cpp
changeset 61 2fc972553898
parent 0 af10295192d8
child 75 c1029e558ef5
--- a/tcpiputils/dhcp/src/DHCPControl.cpp	Mon Aug 30 12:20:22 2010 +0530
+++ b/tcpiputils/dhcp/src/DHCPControl.cpp	Mon Sep 13 16:12:41 2010 +0530
@@ -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 )
 		{