diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2021-11-14 16:55:45 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-11-22 14:42:47 +0100 |
commit | 7264068a15e7c4955efa25753430595a45caa16f (patch) | |
tree | f3e6e1fc3fffbaa849fd0588876261fa818246a3 /test/danetest.c | |
parent | e7313323cc420e8dca2526578ae8a4a4d4d390be (diff) |
BIO_gets: fix the incomplete return check
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17028)
Diffstat (limited to 'test/danetest.c')
-rw-r--r-- | test/danetest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/danetest.c b/test/danetest.c index 8af31aa34e..0ed460039d 100644 --- a/test/danetest.c +++ b/test/danetest.c @@ -152,7 +152,7 @@ static char *read_to_eol(BIO *f) static char buf[4096]; int n; - if (!BIO_gets(f, buf, sizeof(buf))) + if (BIO_gets(f, buf, sizeof(buf)) <= 0) return NULL; n = strlen(buf); |