NULL string argument is treated as %any
This commit is contained in:
@@ -828,6 +828,9 @@ static private_identification_t *identification_create(void)
|
|||||||
identification_t *identification_create_from_string(char *string)
|
identification_t *identification_create_from_string(char *string)
|
||||||
{
|
{
|
||||||
private_identification_t *this = identification_create();
|
private_identification_t *this = identification_create();
|
||||||
|
|
||||||
|
if (string == NULL)
|
||||||
|
string = "%any";
|
||||||
|
|
||||||
if (strchr(string, '=') != NULL)
|
if (strchr(string, '=') != NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user