From bd033f92fdf2677fddcc420f1e047fb5ec93bdc6 Mon Sep 17 00:00:00 2001 From: Artem Boldariev Date: Wed, 17 Aug 2022 13:19:32 +0300 Subject: [PATCH] DIG: fix handling of +http-plain-{get, post} options Support for parsing +http-plain-get and +http-plain-post options was broken. This commit fixes that. (cherry picked from commit fb135867644684a21d79bc3a5cebe3c83217a221) --- bin/dig/dig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/dig/dig.c b/bin/dig/dig.c index c23b96e7f6..afa6761718 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -1558,12 +1558,12 @@ plus_option(char *option, bool is_batchfile, bool *need_clone, FULLCHECK("http-plain"); break; case '-': - switch (cmd[6]) { + switch (cmd[11]) { case 'p': - FULLCHECK("https-plain-post"); + FULLCHECK("http-plain-post"); break; case 'g': - FULLCHECK("https-plain-get"); + FULLCHECK("http-plain-get"); lookup->https_get = true; break; }