Commit 693ff6da authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Reject "auth" command if no -S argument given.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4654 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1e0a6c1b
......@@ -293,7 +293,11 @@ mcf_auth(struct cli *cli, const char *const *av, void *priv)
AN(av[2]);
(void)priv;
AN(secret_file);
if (secret_file == NULL) {
cli_out(cli, "Secret file not configured\n");
cli_result(cli, CLIS_CANT);
return;
}
fd = open(secret_file, O_RDONLY);
if (fd < 0) {
cli_out(cli, "Cannot open secret file (%s)\n",
......
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