Skip to content

Commit

Permalink
lib-program-client: Remove check for -2 returned from i_stream_read_m…
Browse files Browse the repository at this point in the history
…ore().

The stream must have space for at least 1 byte.
  • Loading branch information
stephanbosch committed Jan 26, 2018
1 parent 364ba9b commit e4d05b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib-program-client/program-client.c
Expand Up @@ -351,11 +351,8 @@ void program_client_program_input(struct program_client *pclient)
return;
}
} else {
while ((ret =
i_stream_read_more(input, &data, &size)) > 0 ||
ret == -2) {
while ((ret=i_stream_read_more(input, &data, &size)) > 0)
i_stream_skip(input, size);
}

if (ret == 0)
return;
Expand Down

0 comments on commit e4d05b8

Please sign in to comment.