You've already forked opencryptoki
mirror of
https://github.com/opencryptoki/opencryptoki.git
synced 2026-10-24 05:39:17 +03:00
When writing the initial NVTOK.dat file fails before the file name is set, the attempt to unlink the file uses an uninitialized variable name. Initialize fname with zeros, and attempt the unlink only if the file name was set before. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>