summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bss_bio.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-01-17 00:49:52 +0000
committerRichard Levitte <levitte@openssl.org>2000-01-17 00:49:52 +0000
commitb058a08085af113a6b82f9d7a2066bba1491c244 (patch)
treeb4ef84ec834de7bcd888da127e9c143964873260 /crypto/bio/bss_bio.c
parente7399bf592a09e22ff6dfc943676e8bcb3aab962 (diff)
downloadopenssl-b058a08085af113a6b82f9d7a2066bba1491c244.tar.gz
It doesn't make sense to try see if these variables are negative, since they're unsigned.
Diffstat (limited to 'crypto/bio/bss_bio.c')
-rw-r--r--crypto/bio/bss_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/bss_bio.c b/crypto/bio/bss_bio.c
index 40df575af9..272d3c921b 100644
--- a/crypto/bio/bss_bio.c
+++ b/crypto/bio/bss_bio.c
@@ -250,7 +250,7 @@ static size_t bio_nread(BIO *bio, char **buf, size_t num)
available = bio_nread0(bio, buf);
if (num > available)
num = available;
- if (num <= 0)
+ if (num == 0)
return num;
b = bio->ptr;
@@ -406,7 +406,7 @@ static size_t bio_nwrite(BIO *bio, char **buf, size_t num)
space = bio_nwrite0(bio, buf);
if (num > space)
num = space;
- if (num <= 0)
+ if (num == 0)
return num;
b = bio->ptr;
assert(b != NULL);