Skip to content

Commit

Permalink
error if wait is not enabled and exec xlat is called
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jun 24, 2013
1 parent 44519db commit fc584f9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/modules/rlm_exec/rlm_exec.c
Expand Up @@ -33,7 +33,7 @@ RCSID("$Id$")
typedef struct rlm_exec_t {
char const *xlat_name;
int bare;
int wait;
bool wait;
char *program;
char *input;
char *output;
Expand Down Expand Up @@ -78,7 +78,13 @@ static size_t exec_xlat(void *instance, REQUEST *request,
rlm_exec_t *inst = instance;
VALUE_PAIR **input_pairs = NULL;
char *p;


if (!inst->wait) {
REDEBUG("'wait' must be enabled to use exec xlat");
out[0] = '\0';
return 0;
}

if (inst->input_list) {
input_pairs = radius_list(request, inst->input_list);
if (!input_pairs) {
Expand Down

0 comments on commit fc584f9

Please sign in to comment.