projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
767712f
)
Return an error if gmtime returns NULL.
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 13 Mar 2003 14:13:53 +0000
(14:13 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 13 Mar 2003 14:13:53 +0000
(14:13 +0000)
crypto/o_time.c
patch
|
blob
|
history
diff --git
a/crypto/o_time.c
b/crypto/o_time.c
index ca5f3ea48e0a259e39e6575d65a33a21311db244..723eb1b5af781927047003144bc98f554fbe2a66 100644
(file)
--- a/
crypto/o_time.c
+++ b/
crypto/o_time.c
@@
-80,8
+80,10
@@
struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
ts = result;
#elif !defined(OPENSSL_SYS_VMS)
ts = gmtime(timer);
- if (ts != NULL)
- memcpy(result, ts, sizeof(struct tm));
+ if (ts == NULL)
+ return NULL;
+
+ memcpy(result, ts, sizeof(struct tm));
ts = result;
#endif
#ifdef OPENSSL_SYS_VMS