mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-04 22:19:05 +00:00
Merge pull request #8351 from waleed-elmelegy-arm/fix-null-dereference-in-x509-cert-req
Fix possible NULL dereference issue in X509 cert_req program
This commit is contained in:
commit
d44ee9e6d1
2 changed files with 7 additions and 0 deletions
|
|
@ -261,6 +261,10 @@ usage:
|
|||
|
||||
if ((subtype_value = strchr(q, ':')) != NULL) {
|
||||
*subtype_value++ = '\0';
|
||||
} else {
|
||||
mbedtls_printf(
|
||||
"Invalid argument for option SAN: Entry must be of the form TYPE:value\n");
|
||||
goto usage;
|
||||
}
|
||||
if (strcmp(q, "RFC822") == 0) {
|
||||
cur->node.type = MBEDTLS_X509_SAN_RFC822_NAME;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue