From a2d715b870c358ff035af44612eff318b7ea82de Mon Sep 17 00:00:00 2001 From: Christian Inci Date: Mon, 26 Apr 2021 20:56:22 +0200 Subject: [PATCH] Fix logic bug I can provide another patch version, which swaps the operands instead. Signed-off-by: Christian Inci --- hydra-smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-smb.c b/hydra-smb.c index 20fd1cf6..6fc5bbd5 100644 --- a/hydra-smb.c +++ b/hydra-smb.c @@ -1494,7 +1494,7 @@ int32_t service_smb_init(char *ip, int32_t sp, unsigned char options, char *misc ctime = time(NULL); do { usleepn(300); - } while ((ready = hydra_data_ready(sock)) <= 0 && ctime + 5 <= time(NULL)); + } while ((ready = hydra_data_ready(sock)) <= 0 && ctime + 5 >= time(NULL)); if (ready <= 0) { fprintf(stderr, "[ERROR] no reply from target smb://%s:%d/\n", hostname, port);