diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index aa823613060de..8ca1cf64ed474 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 }