]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Coverity 1506566: unchecked return value
authorPauli <pauli@openssl.org>
Thu, 14 Jul 2022 05:22:30 +0000 (15:22 +1000)
committerPauli <pauli@openssl.org>
Sun, 17 Jul 2022 07:51:13 +0000 (17:51 +1000)
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)

crypto/bio/bss_dgram.c

index 7201c6ae6336d8e7346b6667b23a6909192bcc33..06042b1792a5467507809039555fe4a5a288c311 100644 (file)
@@ -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
 }