From: Pauli Date: Thu, 14 Jul 2022 05:22:30 +0000 (+1000) Subject: Coverity 1506566: unchecked return value X-Git-Tag: openssl-3.2.0-alpha1~2376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=358103b4a651ab3f392f088d86cd30469dccce2e;p=thirdparty%2Fopenssl.git Coverity 1506566: unchecked return value There isn't much else that can be done here unfortunately. Reviewed-by: Tomas Mraz Reviewed-by: Dmitry Belyavskiy Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/18799) --- diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index 7201c6ae633..06042b1792a 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -1914,7 +1914,8 @@ static void get_current_time(struct timeval *t) t->tv_sec = (long)(now_ul / 10000000); t->tv_usec = ((int)(now_ul % 10000000)) / 10; # else - gettimeofday(t, NULL); + if (gettimeofday(t, NULL) < 0) + perror("gettimeofday"); # endif }