Patch by Cameron Gutman (aicommander <at> gmail <dot> com)
authorArt Yerkes <art.yerkes@gmail.com>
Tue, 22 Jul 2008 23:11:46 +0000 (23:11 +0000)
committerArt Yerkes <art.yerkes@gmail.com>
Tue, 22 Jul 2008 23:11:46 +0000 (23:11 +0000)
Fixed my mistake leaving TCPConnect on a failure path without releasing the
TCP lock.

svn path=/trunk/; revision=34690

reactos/lib/drivers/ip/transport/tcp/tcp.c

index 30465bf..86dcb16 100644 (file)
@@ -559,6 +559,7 @@ NTSTATUS TCPConnect
 
     if (!NT_SUCCESS(Status)) {
        TI_DbgPrint(DEBUG_TCP, ("Could not AddrBuildAddress in TCPConnect\n"));
+       TcpipRecursiveMutexLeave( &TCPLock );
        return Status;
     }