Commit 1e7fa834 by Edward Thomson

Merge pull request #3760 from backhub/bug/openssl_read

Fix return value of openssl_read (infinite loop)
parents 88284dfb 568c5a9f
......@@ -523,7 +523,7 @@ ssize_t openssl_read(git_stream *stream, void *data, size_t len)
int ret;
if ((ret = SSL_read(st->ssl, data, len)) <= 0)
ssl_set_error(st->ssl, ret);
return ssl_set_error(st->ssl, ret);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment