From 41deaf616e92ccb172a75baa7bdda1817a06c932 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Sat, 11 Nov 2017 14:24:09 -0500 Subject: [PATCH] swtpm: always set the logging file descriptor on libtpms Signed-off-by: Stefan Berger --- src/swtpm/logging.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/swtpm/logging.c b/src/swtpm/logging.c index 9613184..c273809 100644 --- a/src/swtpm/logging.c +++ b/src/swtpm/logging.c @@ -145,11 +145,11 @@ int log_set_level(unsigned int level) } TPMLIB_SetDebugPrefix(prefixbuf); free(prefixbuf); - - if (logfd != SUPPRESS_LOGGING) - TPMLIB_SetDebugFD(logfd); } + if (logfd != SUPPRESS_LOGGING) + TPMLIB_SetDebugFD(logfd); + err_exit: return ret; }