projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix undefined behaviour in e_aes_cbc_hmac_sha256.c and e_aes_cbc_hmac_sha1.c
[oweals/openssl.git]
/
crypto
/
asn1
/
a_gentm.c
diff --git
a/crypto/asn1/a_gentm.c
b/crypto/asn1/a_gentm.c
index c02c8d9acc953b19d93ef5ce21c3e1564465444b..ff1b6954756698e4175ca707c955ba3ac62213ad 100644
(file)
--- a/
crypto/asn1/a_gentm.c
+++ b/
crypto/asn1/a_gentm.c
@@
-101,7
+101,7
@@
int asn1_generalizedtime_to_tm(struct tm *tm, const ASN1_GENERALIZEDTIME *d)
if (a[o] == 'Z')
o++;
else if ((a[o] == '+') || (a[o] == '-')) {
- int offsign = a[o] == '-' ?
-1 :
1, offset = 0;
+ int offsign = a[o] == '-' ?
1 : -
1, offset = 0;
o++;
if (o + 4 > l)
goto err;