From 9b7f03ae5e1ac92c5a33979067c31a46468c35e1 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sun, 13 Aug 2017 11:24:27 +0200 Subject: lib: Fix TPM thread count on failure --- src/lib/tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/tpm.c b/src/lib/tpm.c index f45744ee..31bb8a7f 100644 --- a/src/lib/tpm.c +++ b/src/lib/tpm.c @@ -161,7 +161,7 @@ static void * tpmgr(void * o) list_add(&e->next, &tpm.pool); } - tpm.cur += tpm.inc; + tpm.cur += i; } if (pthread_cond_timedwait(&tpm.cond, &tpm.lock, &dl) -- cgit v1.2.3