From 736fac2ce594fb10c75f27dea42742498987b90c Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 3 Dec 2020 21:13:01 +0000 Subject: __ntapi_ipc_init_section_by_port(): release lock upon node-not-found. --- src/ipc/ntapi_ipc_connect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ipc/ntapi_ipc_connect.c b/src/ipc/ntapi_ipc_connect.c index 6d86f3b..2d0e4b7 100644 --- a/src/ipc/ntapi_ipc_connect.c +++ b/src/ipc/ntapi_ipc_connect.c @@ -671,7 +671,9 @@ int32_t __stdcall __ntapi_ipc_init_section_by_port( NT_STATUS_INTERNAL_ERROR); else if (!node) - return NT_STATUS_NOT_FOUND; + return __ipc_connect_return( + &__internals->hlock, + NT_STATUS_NOT_FOUND); else ipc = (nt_ipc_conn *)&node->dblock; -- cgit v1.2.3