1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Remove extraneous assignment.

This is likely leftover cruft from a prior refactor.
This commit is contained in:
Cynthia Shang 2020-04-13 16:44:29 -04:00 committed by David Steele
parent 9d2223b188
commit b5347070af

View File

@ -345,8 +345,7 @@ tlsClientRead(THIS_VOID, Buffer *buffer, bool block)
sckClientReadWait(this->socket);
// Read and handle errors
size_t expectedBytes = bufRemains(buffer);
result = SSL_read(this->session, bufRemainsPtr(buffer), (int)expectedBytes);
result = SSL_read(this->session, bufRemainsPtr(buffer), (int)bufRemains(buffer));
if (result <= 0)
{