diff options
author | markus <> | 2003-11-11 21:21:30 +0000 |
---|---|---|
committer | markus <> | 2003-11-11 21:21:30 +0000 |
commit | 9c1aa44a1eacea897c0432e796b205b8484ff4d2 (patch) | |
tree | 5dcca7a2baa0fb63d6886729918ea26b68578561 /src/lib/libcrypto/bio/bf_buff.c | |
parent | 1c98a87f0daac81245653c227eb2f2508a22a965 (diff) | |
download | openbsd-9c1aa44a1eacea897c0432e796b205b8484ff4d2.tar.gz openbsd-9c1aa44a1eacea897c0432e796b205b8484ff4d2.tar.bz2 openbsd-9c1aa44a1eacea897c0432e796b205b8484ff4d2.zip |
import 0.9.7c
Diffstat (limited to 'src/lib/libcrypto/bio/bf_buff.c')
-rw-r--r-- | src/lib/libcrypto/bio/bf_buff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/libcrypto/bio/bf_buff.c b/src/lib/libcrypto/bio/bf_buff.c index 1cecd70579..c1fd75aaad 100644 --- a/src/lib/libcrypto/bio/bf_buff.c +++ b/src/lib/libcrypto/bio/bf_buff.c | |||
@@ -494,6 +494,7 @@ static int buffer_gets(BIO *b, char *buf, int size) | |||
494 | if (i <= 0) | 494 | if (i <= 0) |
495 | { | 495 | { |
496 | BIO_copy_next_retry(b); | 496 | BIO_copy_next_retry(b); |
497 | *buf='\0'; | ||
497 | if (i < 0) return((num > 0)?num:i); | 498 | if (i < 0) return((num > 0)?num:i); |
498 | if (i == 0) return(num); | 499 | if (i == 0) return(num); |
499 | } | 500 | } |