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 15:21:43 +0100 |
commit | 8b7c2c77df29de5dc2aae62fe32a8e7ba755ceb0 (patch) | |
tree | 14c4d4a00181159c66be8c36c4bd10bb5105c95c /test | |
parent | 301c525ee90bfc04f04ccf3241c8b141af0bb46d (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)
(cherry picked from commit 7264068a15e7c4955efa25753430595a45caa16f)
Diffstat (limited to 'test')
-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); |