NULL string argument is treated as %any
This commit is contained in:
1 parent
bc35460db7
commit
fec9cb332f
1 file changed
+3
@@ -829,6 +829,9 @@ identification_t *identification_create_from_string(char *string)
|
||||
{
|
||||
private_identification_t *this = identification_create();
|
||||
|
||||
if (string == NULL)
|
||||
string = "%any";
|
||||
|
||||
if (strchr(string, '=') != NULL)
|
||||
{
|
||||
/* we interpret this as an ASCII X.501 ID_DER_ASN1_DN.
|
||||
|
||||
Reference in new issue
Block a user