From 87e410e5a14dfe25950cd0ca5e47656ea32a9831 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Sun, 3 Mar 2019 23:08:47 +0800 Subject: [PATCH] Fix compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the compilation warning below: hydra-smtp-enum.c: In function ‘service_smtp_enum’: hydra-mod.h:72:22: warning: statement will never be executed [-Wswitch-unreachable] #define hydra_report fprintf hydra-smtp-enum.c:220:11: note: in expansion of macro ‘hydra_report’ hydra_report(stdout, "[VERBOSE] "); ^~~~~~~~~~~~ --- hydra-smtp-enum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-smtp-enum.c b/hydra-smtp-enum.c index ebcd379..c26ac63 100644 --- a/hydra-smtp-enum.c +++ b/hydra-smtp-enum.c @@ -216,8 +216,8 @@ void service_smtp_enum(char *ip, int32_t sp, unsigned char options, char *miscpt smtp_enum_cmd = RCPT; } if (debug) { + hydra_report(stdout, "[VERBOSE] "); switch (smtp_enum_cmd) { - hydra_report(stdout, "[VERBOSE] "); case VRFY: hydra_report(stdout, "using SMTP VRFY command\n"); break;