It doesn't make sense to try see if these variables are negative, since they're unsigned.
[openssl.git] / crypto / bio / bss_bio.c
index 40df575af9752329de9dd0a2642c3a61dd485608..272d3c921b98423693ca5a931f423d00f9602189 100644 (file)
@@ -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);