diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-05-30 18:11:26 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-05-30 18:11:26 +0000 |
commit | 8132d3ac40edb8567c81a84aeb301d427c0a61e2 (patch) | |
tree | 9757dd6a50604bf94dfdb12e9956356fa1f40fa9 /crypto/x509/x509_cmp.c | |
parent | 43e12b6f1ce4f59aeaeacdad3f0e984efa321fb4 (diff) | |
download | openssl-8132d3ac40edb8567c81a84aeb301d427c0a61e2.tar.gz |
Update from 1.0.0-stable.
Diffstat (limited to 'crypto/x509/x509_cmp.c')
-rw-r--r-- | crypto/x509/x509_cmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/x509/x509_cmp.c b/crypto/x509/x509_cmp.c index 306d4b2d73..2e444f2848 100644 --- a/crypto/x509/x509_cmp.c +++ b/crypto/x509/x509_cmp.c @@ -173,16 +173,16 @@ int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b) { int ret; - /* Ensure canonical encoding is present */ + /* Ensure canonical encoding is present and up to date */ - if (!a->canon_enc) + if (!a->canon_enc || a->modified) { ret = i2d_X509_NAME((X509_NAME *)a, NULL); if (ret < 0) return -2; } - if (!b->canon_enc) + if (!b->canon_enc || b->modified) { ret = i2d_X509_NAME((X509_NAME *)b, NULL); if (ret < 0) |