projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
This glues the GMP wrapper ENGINE into OpenSSL if it is being built (ie. if
[openssl.git]
/
crypto
/
o_time.c
diff --git
a/crypto/o_time.c
b/crypto/o_time.c
index 1bc0297b36590850c2bb09d49e30518632756a63..ca5f3ea48e0a259e39e6575d65a33a21311db244 100644
(file)
--- a/
crypto/o_time.c
+++ b/
crypto/o_time.c
@@
-80,7
+80,8
@@
struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
ts = result;
#elif !defined(OPENSSL_SYS_VMS)
ts = gmtime(timer);
- memcpy(result, ts, sizeof(struct tm));
+ if (ts != NULL)
+ memcpy(result, ts, sizeof(struct tm));
ts = result;
#endif
#ifdef OPENSSL_SYS_VMS