summaryrefslogtreecommitdiffstats
path: root/debian/patches/0004-fix-ftbfs-bug.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:41:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:41:43 +0000
commitae9f484622ec96026c9e553da2b2c7d4d021073e (patch)
tree40b42c9f04a3798eaa26c0eed076bdd1269d13c6 /debian/patches/0004-fix-ftbfs-bug.patch
parentAdding upstream version 0.9.2. (diff)
downloadlibtpms-debian.tar.xz
libtpms-debian.zip
Adding debian version 0.9.2-3.1.debian/0.9.2-3.1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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;
+ }