diff options
author | midipix <writeonce@midipix.org> | 2020-12-03 21:13:01 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-12-03 22:31:21 +0000 |
commit | 736fac2ce594fb10c75f27dea42742498987b90c (patch) | |
tree | 3ec503f2a6c70f74524890870952642c26d7239f /src | |
parent | 40b6234aa042d2d4f185b1542b5f12154e0d850b (diff) | |
download | ntapi-736fac2ce594fb10c75f27dea42742498987b90c.tar.bz2 ntapi-736fac2ce594fb10c75f27dea42742498987b90c.tar.xz |
__ntapi_ipc_init_section_by_port(): release lock upon node-not-found.
Diffstat (limited to 'src')
-rw-r--r-- | src/ipc/ntapi_ipc_connect.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |