summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2022-07-14 15:22:30 +1000
committerPauli <pauli@openssl.org>2022-07-17 17:51:13 +1000
commit358103b4a651ab3f392f088d86cd30469dccce2e (patch)
treea6f9fedd8aee6c56043f4dfdd7e909d97c817120 /crypto
parentee8db8c5fb5b091f48d29914126d35a7e29cdcf2 (diff)
downloadopenssl-new-358103b4a651ab3f392f088d86cd30469dccce2e.tar.gz
Coverity 1506566: unchecked return value
There isn't much else that can be done here unfortunately. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18799)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/bss_dgram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c
index 7201c6ae63..06042b1792 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
}