Skip to content

Commit

Permalink
DLPX-81456 zpool import fails assertion (openzfs#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrens authored Jun 3, 2022
1 parent 65c0b51 commit a5fb50f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/libzutil/zutil_import.c
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,8 @@ zpool_find_import_agent(libpc_handle_t *hdl, importargs_t *iarg,
nvlist_t *resp = zoa_send_recv_msg(hdl, msg,
AGENT_PUBLIC_PROTOCOL_VERSION, ZFS_PUBLIC_SOCKET, NULL);

nvlist_t *pools = fnvlist_lookup_nvlist(resp, "pools");
nvlist_t *pools = NULL;
(void) nvlist_lookup_nvlist(resp, "pools", &pools);

nvpair_t *elem = NULL;
while ((elem = nvlist_next_nvpair(pools, elem)) != NULL) {
Expand Down

0 comments on commit a5fb50f

Please sign in to comment.