Swap the check in ssl3_write_pending to avoid using
[openssl.git] / crypto / x509 / t_req.c
index 2fcc43e88e78671809575ee21ec3d192fd4d3de5..2d4c591b7445824eb6d68b62ebbd3f6df173453e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
  *
  * Licensed under the OpenSSL license (the "License").  You may not use
  * this file except in compliance with the License.  You can obtain a copy
@@ -140,6 +140,7 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags,
                 switch (type) {
                 case V_ASN1_PRINTABLESTRING:
                 case V_ASN1_T61STRING:
+                case V_ASN1_NUMERICSTRING:
                 case V_ASN1_UTF8STRING:
                 case V_ASN1_IA5STRING:
                     if (BIO_write(bp, (char *)bs->data, bs->length)