File: 0004-fix-ftbfs-bug.patch

package info (click to toggle)
libtpms 0.9.2-3.1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,576 kB
  • sloc: ansic: 113,969; makefile: 726; sh: 335; cpp: 125
file content (14 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
 }