mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-23 03:29:54 +00:00
Fix possible NULL dereference issue in X509 cert_write program
Signed-off-by: Waleed Elmelegy <[email protected]>
This commit is contained in:
@@ -583,6 +583,9 @@ usage:
|
||||
|
||||
if ((subtype_value = strchr(q, ':')) != NULL) {
|
||||
*subtype_value++ = '\0';
|
||||
} else {
|
||||
mbedtls_printf("Invalid argument for option SAN: Entry should be seperated by a colon\n");
|
||||
goto usage;
|
||||
}
|
||||
if (strcmp(q, "RFC822") == 0) {
|
||||
cur->node.type = MBEDTLS_X509_SAN_RFC822_NAME;
|
||||
|
||||
Reference in New Issue
Block a user