aboutsummaryrefslogtreecommitdiff
path: root/lib/libbe
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2022-03-31 19:18:14 +0000
committerKyle Evans <kevans@FreeBSD.org>2022-03-31 19:23:57 +0000
commitd155d8e138563c0b39c658684e6a4fe6e2e36f8a (patch)
treecbb23478b15d25b008e8ff3750716c890bf8f31f /lib/libbe
parent09d60bfae58f10a24c8fc7c06bd3d90b86d40e07 (diff)
downloadsrc-d155d8e138563c0b39c658684e6a4fe6e2e36f8a.tar.gz
src-d155d8e138563c0b39c658684e6a4fe6e2e36f8a.zip
libbe: fix be_mounted_at() with props after bootonce
propinfo.bootonce was filled with garbage, leading to a segfault later during prop building. Initialize it to NULL. MFC after: 3 days
Diffstat (limited to 'lib/libbe')
-rw-r--r--lib/libbe/be_access.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libbe/be_access.c b/lib/libbe/be_access.c
index 74059a0a5693..a591a4f61d02 100644
--- a/lib/libbe/be_access.c
+++ b/lib/libbe/be_access.c
@@ -219,6 +219,7 @@ be_mounted_at(libbe_handle_t *lbh, const char *path, nvlist_t *details)
propinfo.lbh = lbh;
propinfo.list = details;
propinfo.single_object = false;
+ propinfo.bootonce = NULL;
prop_list_builder_cb(root_hdl, &propinfo);
zfs_close(root_hdl);
}