aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dirmngr_ldap.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-10-02 13:24:41 +0000
committerWerner Koch <[email protected]>2025-10-02 13:24:41 +0000
commit3076fe512b3881e3aeba30597e5aa6208e7c51c5 (patch)
tree4af17791c6cb4fd116766ac1d7b37601b8078f9e /dirmngr/dirmngr_ldap.c
parentscd: Fix an oddity in changing the PIN. (diff)
downloadgnupg-3076fe512b3881e3aeba30597e5aa6208e7c51c5.tar.gz
gnupg-3076fe512b3881e3aeba30597e5aa6208e7c51c5.zip
dirmngr: Fix wrong diagnostic "failed to create alarm thread".
* dirmngr/dirmngr_ldap.c (set_timeout): Fix bogus error diagnostic. -- The error check was simply wrong. No other effect because the log_get_errorcount bases exit(2) is only used before setting the timeout.
Diffstat (limited to 'dirmngr/dirmngr_ldap.c')
-rw-r--r--dirmngr/dirmngr_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/dirmngr_ldap.c b/dirmngr/dirmngr_ldap.c
index 5fc260d74..1b19a5413 100644
--- a/dirmngr/dirmngr_ldap.c
+++ b/dirmngr/dirmngr_ldap.c
@@ -390,7 +390,7 @@ set_timeout (void)
/* Initially set the timer. */
SetWaitableTimer (timer, &due_time, 0, NULL, NULL, 0);
- if (CreateThread (&sec_attr, 0, alarm_thread, timer, 0, &tid))
+ if (!CreateThread (&sec_attr, 0, alarm_thread, timer, 0, &tid))
log_error ("failed to create alarm thread\n");
}
else /* Retrigger the timer. */