Typo which prevents mult valued RDNs being created.
[openssl.git] / crypto / x509v3 / v3_utl.c
index 191cfef1a51127e855a8fc3acb84a9c07f68d10a..7911c4bdaf3feaaaf91ef6c9ec7dce9ffc7afc7b 100644 (file)
@@ -826,13 +826,13 @@ int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE)*dn_sk,
                                break;
                                }
 #ifndef CHARSET_EBCDIC
-                       if (*p == '+')
+               if (*type == '+')
 #else
-                       if (*p == os_toascii['+'])
+               if (*type == os_toascii['+'])
 #endif
                        {
                        mval = -1;
-                       p++;
+                       type++;
                        }
                else
                        mval = 0;