|
|
c29843 |
From 0eae0862069e4bbbdd87b809193fc873f3003cff Mon Sep 17 00:00:00 2001
|
|
|
c29843 |
From: Alexey Tikhonov <atikhono@redhat.com>
|
|
|
c29843 |
Date: Tue, 16 Aug 2022 21:48:43 +0200
|
|
|
c29843 |
Subject: [PATCH 5/6] CLIENT:MC: -1 is more appropriate initial value for fd
|
|
|
c29843 |
MIME-Version: 1.0
|
|
|
c29843 |
Content-Type: text/plain; charset=UTF-8
|
|
|
c29843 |
Content-Transfer-Encoding: 8bit
|
|
|
c29843 |
|
|
|
c29843 |
Reviewed-by: Sumit Bose <sbose@redhat.com>
|
|
|
c29843 |
Reviewed-by: Tomáš Halman <thalman@redhat.com>
|
|
|
c29843 |
(cherry picked from commit 579cc0b266d5f8954bc71cfcd3fe68002d681a5f)
|
|
|
c29843 |
---
|
|
|
c29843 |
src/sss_client/nss_mc.h | 4 ++--
|
|
|
c29843 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
c29843 |
|
|
|
c29843 |
diff --git a/src/sss_client/nss_mc.h b/src/sss_client/nss_mc.h
|
|
|
c29843 |
index de1496ccc..0f88521e9 100644
|
|
|
c29843 |
--- a/src/sss_client/nss_mc.h
|
|
|
c29843 |
+++ b/src/sss_client/nss_mc.h
|
|
|
c29843 |
@@ -67,9 +67,9 @@ struct sss_cli_mc_ctx {
|
|
|
c29843 |
};
|
|
|
c29843 |
|
|
|
c29843 |
#if HAVE_PTHREAD
|
|
|
c29843 |
-#define SSS_CLI_MC_CTX_INITIALIZER(mtx) {UNINITIALIZED, (mtx), 1, 0, NULL, 0, NULL, 0, NULL, 0, 0}
|
|
|
c29843 |
+#define SSS_CLI_MC_CTX_INITIALIZER(mtx) {UNINITIALIZED, (mtx), -1, 0, NULL, 0, NULL, 0, NULL, 0, 0}
|
|
|
c29843 |
#else
|
|
|
c29843 |
-#define SSS_CLI_MC_CTX_INITIALIZER {UNINITIALIZED, 1, 0, NULL, 0, NULL, 0, NULL, 0, 0}
|
|
|
c29843 |
+#define SSS_CLI_MC_CTX_INITIALIZER {UNINITIALIZED, -1, 0, NULL, 0, NULL, 0, NULL, 0, 0}
|
|
|
c29843 |
#endif
|
|
|
c29843 |
|
|
|
c29843 |
errno_t sss_nss_mc_get_ctx(const char *name, struct sss_cli_mc_ctx *ctx);
|
|
|
c29843 |
--
|
|
|
c29843 |
2.37.1
|
|
|
c29843 |
|