mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: Don't call reply_with_* after split_lines fails.
split_lines already sets reply_with_*, so calling it again would lose protocol synchronization.
This commit is contained in:
@@ -143,10 +143,8 @@ blkid_with_p_i_opt (const char *device)
|
||||
|
||||
/* Split the command output into lines */
|
||||
lines = split_lines (out);
|
||||
if (lines == NULL) {
|
||||
reply_with_perror ("malloc");
|
||||
if (lines == NULL)
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* Parse the output of blkid -p -i -o export:
|
||||
* UUID=b6d83437-c6b4-4bf0-8381-ef3fc3578590
|
||||
|
||||
Reference in New Issue
Block a user