summaryrefslogtreecommitdiffstats
path: root/debian/patches/0004-fix-ftbfs-bug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0004-fix-ftbfs-bug.patch')
-rw-r--r--debian/patches/0004-fix-ftbfs-bug.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/0004-fix-ftbfs-bug.patch b/debian/patches/0004-fix-ftbfs-bug.patch
new file mode 100644
index 0000000..a8e456b
--- /dev/null
+++ b/debian/patches/0004-fix-ftbfs-bug.patch
@@ -0,0 +1,14 @@
+Description: Fix FTBFS caused by the incomplete condition.
+Forwarded: not-needed
+
+--- a/src/tpm2/NVDynamic.c
++++ b/src/tpm2/NVDynamic.c
+@@ -122,7 +122,7 @@
+ if(HandleGetType(nvHandle) == type)
+ break;
+ }
+- if(handle != NULL)
++ if((handle != NULL) && (addr != 0))
+ *handle = nvHandle;
+ return addr;
+ }