projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR: 2742
[oweals/openssl.git]
/
crypto
/
asn1
/
t_x509.c
diff --git
a/crypto/asn1/t_x509.c
b/crypto/asn1/t_x509.c
index db88f3a3e15dddace268e53b6e7cef85ec72d1eb..edbb39a02f7a5749e183de368b5bf8f34b4226f1 100644
(file)
--- a/
crypto/asn1/t_x509.c
+++ b/
crypto/asn1/t_x509.c
@@
-138,10
+138,10
@@
int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
if (BIO_write(bp," Serial Number:",22) <= 0) goto err;
bs=X509_get_serialNumber(x);
- if (bs->length <=
4
)
+ if (bs->length <=
(int)sizeof(long)
)
{
l=ASN1_INTEGER_get(bs);
- if (
l < 0
)
+ if (
bs->type == V_ASN1_NEG_INTEGER
)
{
l= -l;
neg="-";