Support arbitrary suffixes for actions, same action multiple times
[strongswan.git] / src / conftest / actions.c
index 92b523f..e376661 100644 (file)
@@ -273,7 +273,7 @@ static void load_action(settings_t *settings, char *action)
 
        for (i = 0; i < countof(actions); i++)
        {
-               if (strcaseeq(actions[i].name, action))
+               if (strncasecmp(actions[i].name, action, strlen(actions[i].name)) == 0)
                {
                        int delay;
                        char *config;