diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/asn1/a_time_tm.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/asn1/a_time_tm.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/a_time_tm.c b/src/lib/libcrypto/asn1/a_time_tm.c index 7b25e439c4..81a92ad6d8 100644 --- a/src/lib/libcrypto/asn1/a_time_tm.c +++ b/src/lib/libcrypto/asn1/a_time_tm.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_time_tm.c,v 1.2 2015/10/04 15:15:11 jsing Exp $ */ | 1 | /* $OpenBSD: a_time_tm.c,v 1.3 2015/10/05 06:13:58 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -120,7 +120,7 @@ asn1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode) | |||
120 | char *t = buf + i; | 120 | char *t = buf + i; |
121 | if (isdigit((unsigned char)*t)) | 121 | if (isdigit((unsigned char)*t)) |
122 | continue; | 122 | continue; |
123 | if (*t == '.' && dot == NULL) { | 123 | if (*t == '.' && dot == NULL && tz == NULL) { |
124 | dot = t; | 124 | dot = t; |
125 | continue; | 125 | continue; |
126 | } | 126 | } |
diff --git a/src/lib/libssl/src/crypto/asn1/a_time_tm.c b/src/lib/libssl/src/crypto/asn1/a_time_tm.c index 7b25e439c4..81a92ad6d8 100644 --- a/src/lib/libssl/src/crypto/asn1/a_time_tm.c +++ b/src/lib/libssl/src/crypto/asn1/a_time_tm.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_time_tm.c,v 1.2 2015/10/04 15:15:11 jsing Exp $ */ | 1 | /* $OpenBSD: a_time_tm.c,v 1.3 2015/10/05 06:13:58 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -120,7 +120,7 @@ asn1_time_parse(const char *bytes, size_t len, struct tm *tm, int mode) | |||
120 | char *t = buf + i; | 120 | char *t = buf + i; |
121 | if (isdigit((unsigned char)*t)) | 121 | if (isdigit((unsigned char)*t)) |
122 | continue; | 122 | continue; |
123 | if (*t == '.' && dot == NULL) { | 123 | if (*t == '.' && dot == NULL && tz == NULL) { |
124 | dot = t; | 124 | dot = t; |
125 | continue; | 125 | continue; |
126 | } | 126 | } |