|
|
1ad1a2 |
From 62af4b5baa54bb4838197969064d3c2b090325cc Mon Sep 17 00:00:00 2001
|
|
|
1ad1a2 |
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
|
|
|
1ad1a2 |
Date: Thu, 18 Jun 2020 15:08:24 +0200
|
|
|
1ad1a2 |
Subject: [PATCH] pam_sss: fix missing initializer
|
|
|
1ad1a2 |
MIME-Version: 1.0
|
|
|
1ad1a2 |
Content-Type: text/plain; charset=UTF-8
|
|
|
1ad1a2 |
Content-Transfer-Encoding: 8bit
|
|
|
1ad1a2 |
|
|
|
1ad1a2 |
Fix the following error introduced by:
|
|
|
1ad1a2 |
3ed254765fc92e9cc9e4c35335818eaf1256e0d6
|
|
|
1ad1a2 |
|
|
|
1ad1a2 |
```
|
|
|
1ad1a2 |
/home/pbrezina/workspace/sssd/src/sss_client/pam_sss.c: In function ‘prompt_sc_pin’:
|
|
|
1ad1a2 |
/home/pbrezina/workspace/sssd/src/sss_client/pam_sss.c:1839:41: error: missing initializer for field ‘next’ of ‘struct cert_auth_info’ [-Werror=missing-field-initializers]
|
|
|
1ad1a2 |
NULL, NULL, NULL, NULL, NULL };
|
|
|
1ad1a2 |
^~~~
|
|
|
1ad1a2 |
/home/pbrezina/workspace/sssd/src/sss_client/pam_sss.c:132:28: note: ‘next’ declared here
|
|
|
1ad1a2 |
struct cert_auth_info *next;
|
|
|
1ad1a2 |
|
|
|
1ad1a2 |
```
|
|
|
1ad1a2 |
|
|
|
1ad1a2 |
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
|
|
|
1ad1a2 |
(cherry picked from commit a08d4741cd5d2ecea44eb590e881baf2071e34d2)
|
|
|
1ad1a2 |
---
|
|
|
1ad1a2 |
src/sss_client/pam_sss.c | 2 +-
|
|
|
1ad1a2 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
1ad1a2 |
|
|
|
1ad1a2 |
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
|
|
|
1ad1a2 |
index 38a75e1b6..7084ce953 100644
|
|
|
1ad1a2 |
--- a/src/sss_client/pam_sss.c
|
|
|
1ad1a2 |
+++ b/src/sss_client/pam_sss.c
|
|
|
1ad1a2 |
@@ -1800,7 +1800,7 @@ static int prompt_sc_pin(pam_handle_t *pamh, struct pam_items *pi)
|
|
|
1ad1a2 |
struct pam_response *resp = NULL;
|
|
|
1ad1a2 |
struct cert_auth_info *cai = pi->selected_cert;
|
|
|
1ad1a2 |
struct cert_auth_info empty_cai = { NULL, NULL, discard_const("Smartcard"),
|
|
|
1ad1a2 |
- NULL, NULL, NULL, NULL, NULL };
|
|
|
1ad1a2 |
+ NULL, NULL, NULL, NULL, NULL, NULL };
|
|
|
1ad1a2 |
|
|
|
1ad1a2 |
if (cai == NULL && SERVICE_IS_GDM_SMARTCARD(pi)) {
|
|
|
1ad1a2 |
cai = &empty_cai;
|
|
|
1ad1a2 |
--
|
|
|
1ad1a2 |
2.35.3
|
|
|
1ad1a2 |
|