Page MenuHomeFreeBSD

D30050.1777289727.diff
No OneTemporary

Size
600 B
Referenced Files
None
Subscribers
None

D30050.1777289727.diff

Index: usr.sbin/bhyve/smbiostbl.c
===================================================================
--- usr.sbin/bhyve/smbiostbl.c
+++ usr.sbin/bhyve/smbiostbl.c
@@ -38,6 +38,7 @@
#include <string.h>
#include <unistd.h>
#include <uuid.h>
+#include <stdlib.h>
#include <machine/vmm.h>
#include <vmmapi.h>
@@ -598,8 +599,10 @@
uint32_t status;
uuid_from_string(guest_uuid_str, &uuid, &status);
- if (status != uuid_s_ok)
- return (-1);
+ if (status != uuid_s_ok) {
+ fprintf(stderr, "Invalid UUID provided\n");
+ exit(4);
+ }
uuid_enc_le(&type1->uuid, &uuid);
} else {

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 27, 11:35 AM (15 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28439174
Default Alt Text
D30050.1777289727.diff (600 B)

Event Timeline