From 43020b80322db06543556cb015e7b4fc8faefc08 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Tue, 14 Dec 2021 14:09:56 +0300 Subject: [PATCH] Driver: Minor fix --- src/driver/fortcout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/driver/fortcout.c b/src/driver/fortcout.c index 21b9f86a..990cff58 100644 --- a/src/driver/fortcout.c +++ b/src/driver/fortcout.c @@ -724,7 +724,8 @@ FORT_API NTSTATUS fort_callout_force_reauth( /* Open provider */ HANDLE engine; - if (!(status = fort_prov_open(&engine))) { + status = fort_prov_open(&engine); + if (NT_SUCCESS(status)) { fort_prov_trans_begin(engine); status = fort_callout_force_reauth_prov(old_conf_flags, conf_flags, engine);