Page MenuHomeFreeBSD

D40558.diff
No OneTemporary

D40558.diff

diff --git a/usr.sbin/bhyve/tpm_device.c b/usr.sbin/bhyve/tpm_device.c
--- a/usr.sbin/bhyve/tpm_device.c
+++ b/usr.sbin/bhyve/tpm_device.c
@@ -7,6 +7,7 @@
#include <sys/types.h>
+#include <assert.h>
#include <err.h>
#include <errno.h>
#include <stdlib.h>
@@ -54,7 +55,8 @@
}
value = get_config_value_node(nvl, "version");
- if (value == NULL || strcmp(value, "2.0")) {
+ assert(value != NULL);
+ if (strcmp(value, "2.0")) {
warnx("%s: unsupported tpm version %s", __func__, value);
error = EINVAL;
goto err_out;

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 1:53 PM (17 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16146321
Default Alt Text
D40558.diff (536 B)

Event Timeline