diff options
author | Pauli <ppzgs1@gmail.com> | 2021-03-19 08:44:09 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-03-26 08:46:01 +1000 |
commit | 6a6844a219769aa9f58782fda2960c0ab5a4022b (patch) | |
tree | 75e3fb8e44f7949f692fec76018bcd1500fe59c5 /test | |
parent | 3c4c8dd84ac18345a44120bb28f7fc85e33da093 (diff) | |
download | openssl-new-6a6844a219769aa9f58782fda2960c0ab5a4022b.tar.gz |
test: fix coverity 1338157: unchecked return value
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14615)
Diffstat (limited to 'test')
-rw-r--r-- | test/gmdifftest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gmdifftest.c b/test/gmdifftest.c index b0fc5c637f..b1720ccf48 100644 --- a/test/gmdifftest.c +++ b/test/gmdifftest.c @@ -32,8 +32,8 @@ static int check_time(long offset) OPENSSL_gmtime(&t2, &tm2); OPENSSL_gmtime(&t1, &tm1); o1 = tm1; - OPENSSL_gmtime_adj(&tm1, 0, offset); - if (!TEST_int_eq(tm1.tm_year, tm2.tm_year) + if (!TEST_true(OPENSSL_gmtime_adj(&tm1, 0, offset)) + || !TEST_int_eq(tm1.tm_year, tm2.tm_year) || !TEST_int_eq(tm1.tm_mon, tm2.tm_mon) || !TEST_int_eq(tm1.tm_mday, tm2.tm_mday) || !TEST_int_eq(tm1.tm_hour, tm2.tm_hour) |