projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't use psec or pdays if NULL
[openssl.git]
/
crypto
/
o_time.c
diff --git
a/crypto/o_time.c
b/crypto/o_time.c
index
f8cf590
..
49bff49
100644
(file)
--- a/
crypto/o_time.c
+++ b/
crypto/o_time.c
@@
-289,8
+289,10
@@
int OPENSSL_gmtime_diff(struct tm *from, struct tm *to, int *pday, int *psec)
diff_sec -= SECS_PER_DAY;
}
- *pday = (int)diff_day;
- *psec = diff_sec;
+ if (pday)
+ *pday = (int)diff_day;
+ if (psec)
+ *psec = diff_sec;
return 1;