Skip to content

Commit

Permalink
Fix logic bug
Browse files Browse the repository at this point in the history
I can provide another patch version, which swaps the operands instead.

Signed-off-by: Christian Inci <[email protected]>
  • Loading branch information
chris-pcguy committed Apr 26, 2021
1 parent dd8348b commit a2d715b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydra-smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a2d715b

Please sign in to comment.