summaryrefslogtreecommitdiffstats
path: root/daemon/blkid.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-16 12:40:16 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-16 14:11:02 +0000
commit710ec49bac8bce10bfc0b9ba4b34d877c22f7287 (patch)
treec9d673631d69fc2879a02150f48b05059ddeb981 /daemon/blkid.c
parent974dffc6769b732befe85bcd8f614b9600927631 (diff)
downloadlibguestfs-710ec49bac8bce10bfc0b9ba4b34d877c22f7287.tar.gz
libguestfs-710ec49bac8bce10bfc0b9ba4b34d877c22f7287.tar.xz
libguestfs-710ec49bac8bce10bfc0b9ba4b34d877c22f7287.zip
daemon: Don't call reply_with_* after split_lines fails.
split_lines already sets reply_with_*, so calling it again would lose protocol synchronization.
Diffstat (limited to 'daemon/blkid.c')
-rw-r--r--daemon/blkid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/daemon/blkid.c b/daemon/blkid.c
index a6170dd9..7cc7889d 100644
--- a/daemon/blkid.c
+++ b/daemon/blkid.c
@@ -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