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:
Richard W.M. Jones
2012-03-16 12:40:16 +00:00
parent 974dffc676
commit 710ec49bac
2 changed files with 2 additions and 6 deletions

View File

@@ -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