URL: https://github.com/SSSD/sssd/pull/5896
Author: ikerexxe
 Title: #5896: ifp: fix covscan issues
Action: opened

PR body:
"""
Fix covscan issues introduced in commit
cf75d897b8ef03fdc471059214e86824f19b1bd1

Resolves: https://github.com/SSSD/sssd/issues/5877
"""

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5896/head:pr5896
git checkout pr5896
From 9d930df5537bdc95bb95bb099fdd1543204b21d6 Mon Sep 17 00:00:00 2001
From: Iker Pedrosa <ipedr...@redhat.com>
Date: Tue, 30 Nov 2021 11:49:16 +0100
Subject: [PATCH] ifp: fix covscan issues

Fix covscan issues introduced in commit
cf75d897b8ef03fdc471059214e86824f19b1bd1

Resolves: https://github.com/SSSD/sssd/issues/5877

Signed-off-by: Iker Pedrosa <ipedr...@redhat.com>
---
 src/responder/ifp/ifp_users.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/responder/ifp/ifp_users.c b/src/responder/ifp/ifp_users.c
index 9b870f45d8..8746b25034 100644
--- a/src/responder/ifp/ifp_users.c
+++ b/src/responder/ifp/ifp_users.c
@@ -1035,7 +1035,7 @@ struct ifp_users_find_by_valid_cert_state {
     struct ifp_ctx *ifp_ctx;
     struct tevent_context *ev;
     const char *logfile;
-    time_t timeout;
+    int timeout;
     char *ca_db;
     char *verify_opts;
     char *derb64;
@@ -1083,13 +1083,13 @@ ifp_users_find_by_valid_cert_send(TALLOC_CTX *mem_ctx,
 
     ret = confdb_get_int(ctx->rctx->cdb, CONFDB_IFP_CONF_ENTRY,
                          CONFDB_PAM_P11_CHILD_TIMEOUT, -1,
-                         (int *) &state->timeout);
+                         &state->timeout);
     if (ret != EOK || state->timeout == -1) {
         /* check pam configuration as well or use default */
         ret = confdb_get_int(ctx->rctx->cdb, CONFDB_PAM_CONF_ENTRY,
                              CONFDB_PAM_P11_CHILD_TIMEOUT,
                              P11_CHILD_TIMEOUT_DEFAULT,
-                             (int *) &state->timeout);
+                             &state->timeout);
         if (ret != EOK) {
             DEBUG(SSSDBG_CRIT_FAILURE,
                   "Failed to read p11_child_timeout from confdb: [%d]: %s\n",
_______________________________________________
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to