diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-03-14 03:29:57 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-03-14 03:29:57 +0000 |
commit | 80870566cf49263fab7b0fe06c79985be8270d68 (patch) | |
tree | 8ec51ed17e64d9dd43df98f532e6f287f17d082d /crypto/x509/x509name.c | |
parent | 5d8118d2189ae13b17e980288b2e59ccea93daf6 (diff) |
Make V_ASN1_APP_CHOOSE work again.
Diffstat (limited to 'crypto/x509/x509name.c')
-rw-r--r-- | crypto/x509/x509name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x509name.c b/crypto/x509/x509name.c index cf2382d42c..4c20e03ece 100644 --- a/crypto/x509/x509name.c +++ b/crypto/x509/x509name.c @@ -352,7 +352,7 @@ int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, int i; if ((ne == NULL) || ((bytes == NULL) && (len != 0))) return(0); - if(type & MBSTRING_FLAG) + if((type > 0) && (type & MBSTRING_FLAG)) return ASN1_STRING_set_by_NID(&ne->value, bytes, len, type, OBJ_obj2nid(ne->object)) ? 1 : 0; |