Remove restriction on assigning return codes only to module calls
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 18 Jan 2015 02:34:54 +0000 (09:34 +0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 18 Jan 2015 02:34:54 +0000 (09:34 +0700)
src/main/modcall.c

index 3b551df..5d72ce2 100644 (file)
@@ -187,12 +187,6 @@ static int compile_action(modcallable *c, CONF_PAIR *cp)
        value = cf_pair_value(cp);
        if (!value) return 0;
 
-       if (c->type != MOD_SINGLE) {
-               ERROR("%s[%d] Invalid return code assigment inside of a %s section",
-                     cf_pair_filename(cp), cf_pair_lineno(cp), group_name[c->type]);
-               return 0;
-       }
-
        if (!strcasecmp(value, "return"))
                action = MOD_ACTION_RETURN;