git: d155d8e13856 - main - libbe: fix be_mounted_at() with props after bootonce

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Thu, 31 Mar 2022 19:26:11 UTC
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=d155d8e138563c0b39c658684e6a4fe6e2e36f8a

commit d155d8e138563c0b39c658684e6a4fe6e2e36f8a
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2022-03-31 19:18:14 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2022-03-31 19:23:57 +0000

    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
---
 lib/libbe/be_access.c | 1 +
 1 file changed, 1 insertion(+)

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);
 		}