Author: cgutman Date: Sat Jan 3 22:10:54 2009 New Revision: 38541
URL: http://svn.reactos.org/svn/reactos?rev=38541&view=rev Log: - Set ConnectionCallInfo and ConnectionReturnInfo to NULL after we free them so they don't get freed again
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/listen.c
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/listen.c URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/netw... ============================================================================== --- branches/aicom-network-fixes/drivers/network/afd/afd/listen.c [iso-8859-1] (original) +++ branches/aicom-network-fixes/drivers/network/afd/afd/listen.c [iso-8859-1] Sat Jan 3 22:10:54 2009 @@ -159,8 +159,16 @@ ListEntry ) ); }
- if( FCB->ListenIrp.ConnectionCallInfo ) ExFreePool( FCB->ListenIrp.ConnectionCallInfo ); - if( FCB->ListenIrp.ConnectionReturnInfo ) ExFreePool( FCB->ListenIrp.ConnectionReturnInfo ); + if( FCB->ListenIrp.ConnectionCallInfo ) { + ExFreePool( FCB->ListenIrp.ConnectionCallInfo ); + FCB->ListenIrp.ConnectionCallInfo = NULL; + } + + if( FCB->ListenIrp.ConnectionReturnInfo ) { + ExFreePool( FCB->ListenIrp.ConnectionReturnInfo ); + FCB->ListenIrp.ConnectionReturnInfo = NULL; + } + FCB->NeedsNewListen = TRUE;
/* Trigger a select return if appropriate */