diff options
author | Christian Schlack <christian@backhub.co> | 2016-04-26 18:04:03 +0200 |
---|---|---|
committer | Christian Schlack <christian@backhub.co> | 2016-04-26 18:04:03 +0200 |
commit | 4734c52ab2e5d8b77f2659282eefdbd7ebee4628 (patch) | |
tree | dc978bb2fd98db6fbe99ffb2ea3f20ddb7701ad0 /tests/diff/diffiter.c | |
parent | cb2dfa46c8e12f60b20cdc80e1616c35d74c1b7e (diff) | |
download | libgit2-4734c52ab2e5d8b77f2659282eefdbd7ebee4628.tar.gz |
Fix return value of openssl_read (infinite loop)
openssl_read should return -1 in case of error.
SSL_read returns values <= 0 in case of error.
A return value of 0 can lead to an infinite loop, so the return value
of ssl_set_error will be returned if SSL_read is not successful (analog
to openssl_write).
Diffstat (limited to 'tests/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions