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:
Pino Toscano
2017-03-06 11:38:37 +01:00
parent 61a6f7e2d0
commit c5fa352087

View File

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