From 3ae7b30cdd1ef53e099d2afd9adadaa352094ccb Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Tue, 6 Sep 2016 20:45:14 -0400 Subject: [PATCH] SAVE: Fix thinko for previous commit. --- src/commands.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/commands.c b/src/commands.c index 30c56199..ffa778e6 100644 --- a/src/commands.c +++ b/src/commands.c @@ -936,10 +936,6 @@ save_command (assuan_context_t ctx, char *line) crypto_free_save (&client->crypto->save); - rc = parse_options (&line, args, client, 0); - if (rc) - return send_error (ctx, rc); - if (!(client->flags & FLAG_NEW)) { rc = crypto_is_symmetric (client->filename); @@ -955,6 +951,11 @@ save_command (assuan_context_t ctx, char *line) if (rc) return send_error (ctx, rc); + rc = parse_options (&line, args, client, 0); + if (rc) + return send_error (ctx, rc); + + if (config_get_boolean (client->filename, "require_save_key") || (client->opts & OPT_SYMMETRIC)) client->opts |= OPT_ASK; -- 2.11.4.GIT