Fix compilation warning

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] ");
           ^~~~~~~~~~~~
This commit is contained in:
David Maciejak 2019-03-03 23:08:47 +08:00 committed by GitHub
parent bdf0475b48
commit 87e410e5a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,8 +216,8 @@ void service_smtp_enum(char *ip, int32_t sp, unsigned char options, char *miscpt
smtp_enum_cmd = RCPT;
}
if (debug) {
switch (smtp_enum_cmd) {
hydra_report(stdout, "[VERBOSE] ");
switch (smtp_enum_cmd) {
case VRFY:
hydra_report(stdout, "using SMTP VRFY command\n");
break;