mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- MFB: #42222, forgot this one (thanks mattias)
This commit is contained in:
parent
0f55627dee
commit
ac3a73972a
@ -1818,9 +1818,10 @@ static int php_openssl_make_REQ(struct php_x509_request * req, X509_REQ * csr, z
|
||||
len = 200;
|
||||
}
|
||||
memcpy(buffer, type, len);
|
||||
buffer[len] = '\0';
|
||||
buffer[len - 1] = '\0';
|
||||
|
||||
type = buffer;
|
||||
|
||||
|
||||
/* Skip past any leading X. X: X, etc to allow for multiple
|
||||
* instances */
|
||||
for (str = type; *str; str++) {
|
||||
|
Loading…
Reference in New Issue
Block a user