swtpm: always set the logging file descriptor on libtpms

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2017-11-11 14:24:09 -05:00
parent addf7c5e45
commit 41deaf616e

View File

@ -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;
}