diff options
author | Ray Strode <rstrode@redhat.com> | 2008-06-03 11:07:39 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2008-06-03 11:10:39 -0400 |
commit | 4f003fd471789aec345f482b134272dc084b9e30 (patch) | |
tree | 37eb37db91b678a3ca57813568d56afa4b255be1 /src/client | |
parent | e79b8a7ec9158ef6b3bf7a9706b774e5cf77cd73 (diff) | |
download | plymouth-4f003fd471789aec345f482b134272dc084b9e30.tar.gz plymouth-4f003fd471789aec345f482b134272dc084b9e30.tar.xz plymouth-4f003fd471789aec345f482b134272dc084b9e30.zip |
Don't assert if daemon returns empty string answer to client
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/ply-boot-client.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/ply-boot-client.c b/src/client/ply-boot-client.c index c349837..6edc3e6 100644 --- a/src/client/ply-boot-client.c +++ b/src/client/ply-boot-client.c @@ -264,8 +264,11 @@ ply_boot_client_process_incoming_replies (ply_boot_client_t *client) if (!ply_read (client->socket_fd, &size, sizeof (uint8_t))) goto out; - if (!ply_read (client->socket_fd, answer, size)) - goto out; + if (size > 0) + { + if (!ply_read (client->socket_fd, answer, size)) + goto out; + } ((ply_boot_client_answer_handler_t) request->handler) (request->user_data, answer, client); } |