mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
daemon: btrfs: check end_stringsbuf return values everywhere
Make sure to check the return value of end_stringsbuf everywhere, as that would generate invalid string lists.
This commit is contained in:
@@ -2280,7 +2280,8 @@ do_btrfs_filesystem_show (const char *device)
|
||||
}
|
||||
}
|
||||
|
||||
end_stringsbuf (&ret);
|
||||
if (end_stringsbuf (&ret) == -1)
|
||||
return NULL;
|
||||
|
||||
return take_stringsbuf (&ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user