Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
liblattzfs
Commits
e36d93e6
Commit
e36d93e6
authored
Aug 15, 2021
by
Shawn Webb
Browse files
Check for libzfs_init failure
Signed-off-by:
Shawn Webb
<
shawn.webb@hardenedbsd.org
>
Pointy-Hat: Shawn Webb
parent
a0964498
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/liblattzfs.c
View file @
e36d93e6
...
...
@@ -63,6 +63,11 @@ lattzfs_ctx_new(const char *pool, uint64_t flags)
}
ctx
->
lc_zfs_handle
=
libzfs_init
();
if
(
ctx
->
lc_zfs_handle
==
NULL
)
{
free
(
ctx
);
free
(
ctx
->
lc_pool_name
);
return
(
NULL
);
}
if
(
!
(
flags
&
LATTZFS_FLAG_LAZY_OPEN
))
{
if
(
!
_lattzfs_pool_open
(
ctx
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment