summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Ahern <william@server.local>2013-09-09 15:35:56 -0700
committerWilliam Ahern <william@server.local>2013-09-09 15:35:56 -0700
commit993ee935cdb5aacb3485cceb0cdb264d7f8bd098 (patch)
tree3e31280c70c2a0f767d814deda1e5ca0a5234d0b
parent6e6b301ceee052ffd4187d9024c09520e4378de3 (diff)
downloadluaossl-993ee935cdb5aacb3485cceb0cdb264d7f8bd098.tar.gz
luaossl-993ee935cdb5aacb3485cceb0cdb264d7f8bd098.tar.bz2
luaossl-993ee935cdb5aacb3485cceb0cdb264d7f8bd098.zip
-n
fix initialization issue with tm.tm_sec in tm2unix, and be conservative about it in case future code uses other members
-rw-r--r--openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl.c b/openssl.c
index 1c9161a..5fda60d 100644
--- a/openssl.c
+++ b/openssl.c
@@ -1835,7 +1835,7 @@ static _Bool scan(int *i, char **cp, int n, int signok) {
1835 1835
1836static double timeutc(ASN1_TIME *time) { 1836static double timeutc(ASN1_TIME *time) {
1837 char buf[32] = "", *cp; 1837 char buf[32] = "", *cp;
1838 struct tm tm; 1838 struct tm tm = { 0 };
1839 int gmtoff = 0, year, i; 1839 int gmtoff = 0, year, i;
1840 double ts; 1840 double ts;
1841 1841