return 1;
appctx->ctx.env.var = environ;
- appctx->st2 = STAT_ST_INIT;
if (*args[2]) {
int len = strlen(args[2]);
return 1;
}
}
-
- appctx->st2 = STAT_ST_INIT;
return 1;
-
}
/* This function dumps counters from all resolvers section and associated name servers.
/* no parameter: display all map available */
if (!*args[2]) {
- appctx->st2 = STAT_ST_INIT;
- appctx->st0 = CLI_ST_CALLBACK;
appctx->io_handler = cli_io_handler_pats_list;
return 0;
}
appctx->st0 = CLI_ST_PRINT;
return 1;
}
- appctx->st2 = STAT_ST_INIT;
- appctx->st0 = CLI_ST_CALLBACK;
appctx->io_handler = cli_io_handler_pat_list;
return 0;
}
else
appctx->ctx.errors.iid = -1;
appctx->ctx.errors.px = NULL;
- appctx->st2 = STAT_ST_INIT;
return 0;
}
/* no parameter, shows only file list */
if (!*args[2]) {
appctx->ctx.tlskeys.dump_all = 1;
- appctx->st2 = STAT_ST_INIT;
- appctx->st0 = CLI_ST_CALLBACK;
appctx->io_handler = cli_io_handler_tlskeys_files;
-
return 1;
}
appctx->ctx.tlskeys.dump_all = 1;
} else {
appctx->ctx.tlskeys.ref = tlskeys_ref_lookup_ref(args[2]);
- if(!appctx->ctx.tlskeys.ref) {
+ if (!appctx->ctx.tlskeys.ref) {
appctx->ctx.cli.msg = "'show tls-keys' unable to locate referenced filename\n";
appctx->st0 = CLI_ST_PRINT;
return 1;
}
}
- appctx->st2 = STAT_ST_INIT;
- appctx->st0 = CLI_ST_CALLBACK;
appctx->io_handler = cli_io_handler_tlskeys_entries;
return 1;
}
{
if (strcmp(args[2], "typed") == 0)
appctx->ctx.stats.flags |= STAT_FMT_TYPED;
- appctx->st2 = STAT_ST_INIT;
return 0;
}
else if (strcmp(args[2], "typed") == 0)
appctx->ctx.stats.flags |= STAT_FMT_TYPED;
- appctx->st2 = STAT_ST_INIT;
return 0;
}
appctx->private = private;
appctx->ctx.table.data_type = -1;
- appctx->st2 = STAT_ST_INIT;
appctx->ctx.table.target = NULL;
appctx->ctx.table.proxy = NULL;
appctx->ctx.table.entry = NULL;
static int cli_parse_show_sess(char **args, struct appctx *appctx, void *private)
{
- appctx->st2 = STAT_ST_INIT;
if (!cli_has_level(appctx, ACCESS_LVL_OPER))
return 1;