Commit ddb326ad authored by Michael Tremer's avatar Michael Tremer

as: Do not attempt to match name when it wasn't set

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent a7d3a7a0
......@@ -145,6 +145,10 @@ int loc_as_match_string(struct loc_as* as, const char* string) {
if (!string)
return 1;
// Cannot match anything when name is not set
if (!as->name)
return 1;
// Search if string is in name
if (strcasestr(as->name, string) != NULL)
return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment