Remove repeated condition from if in X509_NAME_oneline
authorMatt Caswell <matt@openssl.org>
Tue, 17 May 2016 10:07:27 +0000 (11:07 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 17 May 2016 13:27:19 +0000 (14:27 +0100)
commit2647e2617e31002cb0ab80758be4e566917d2888
tree55f6fa7cb91002efa106b2935e65faacc8776dc5
parentc0e32b16099e346c3289932a6494c5fc902429d1
Remove repeated condition from if in X509_NAME_oneline

An if checks the value of |type| to see if it is V_ASN1_VISIBLESTRING
twice. We only need to do it once.

GitHub Issue #656

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/x509/x509_obj.c