[PATCH] msv1_0: Fix the call to ntlm_cleanup().

Francois Gouget fgouget at codeweavers.com
Mon Aug 16 02:59:11 CDT 2021


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
This fixes the failures in rpcrt4:rpc, secur32:negotiate and
secur32:ntlm caused by d6d32434a7fd:
https://test.winehq.org/data/patterns.html#rpcrt4:rpc
https://test.winehq.org/data/patterns.html#secur32:negotiate
https://test.winehq.org/data/patterns.html#secur32:ntlm

Note: The ntlm_cleanup() called in main.c does not take the same 
      parameters as the one in unixlib.c.
---
 dlls/msv1_0/unixlib.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/msv1_0/unixlib.c b/dlls/msv1_0/unixlib.c
index cada3febedf..789dfbbe8cb 100644
--- a/dlls/msv1_0/unixlib.c
+++ b/dlls/msv1_0/unixlib.c
@@ -199,6 +199,7 @@ static NTSTATUS ntlm_check_version( void *args )
     char *argv[3], buf[80];
     NTSTATUS status = STATUS_DLL_NOT_FOUND;
     struct fork_params params = { &ctx, argv };
+    struct cleanup_params cleanup_params = { &ctx };
     int len;
 
     argv[0] = (char *)"ntlm_auth";
@@ -231,7 +232,7 @@ static NTSTATUS ntlm_check_version( void *args )
                               "Make sure that ntlm_auth >= %d.%d.%d is in your path. "
                               "Usually, you can find it in the winbind package of your distribution.\n",
                               NTLM_AUTH_MAJOR_VERSION, NTLM_AUTH_MINOR_VERSION, NTLM_AUTH_MICRO_VERSION );
-    ntlm_cleanup( &ctx );
+    ntlm_cleanup( &cleanup_params );
     return status;
 }
 
-- 
2.20.1



More information about the wine-devel mailing list