mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-19 21:03:52 -07:00
Remove useless sock check in init functions
'sock' inited with -1 a few lines above, so condition is alwais false
This commit is contained in:
parent
cdfce6b977
commit
a01712370b
3 changed files with 0 additions and 7 deletions
|
@ -525,9 +525,6 @@ int service_pop3_init(char *ip, int sp, unsigned char options, char *miscptr, FI
|
||||||
p.disable_tls = 1;
|
p.disable_tls = 1;
|
||||||
memcpy(p.ip, ip, 36);
|
memcpy(p.ip, ip, 36);
|
||||||
|
|
||||||
if (sock >= 0)
|
|
||||||
sock = hydra_disconnect(sock);
|
|
||||||
// usleepn(300);
|
|
||||||
if ((options & OPTION_SSL) == 0) {
|
if ((options & OPTION_SSL) == 0) {
|
||||||
if (port != 0)
|
if (port != 0)
|
||||||
myport = port;
|
myport = port;
|
||||||
|
|
|
@ -135,8 +135,6 @@ int service_redis_init(char *ip, int sp, unsigned char options, char *miscptr, F
|
||||||
char buffer[] = "*1\r\n$4\r\nping\r\n";
|
char buffer[] = "*1\r\n$4\r\nping\r\n";
|
||||||
|
|
||||||
hydra_register_socket(sp);
|
hydra_register_socket(sp);
|
||||||
if (sock >= 0)
|
|
||||||
sock = hydra_disconnect(sock);
|
|
||||||
if ((options & OPTION_SSL) == 0) {
|
if ((options & OPTION_SSL) == 0) {
|
||||||
if (port != 0)
|
if (port != 0)
|
||||||
myport = port;
|
myport = port;
|
||||||
|
|
|
@ -130,8 +130,6 @@ int service_rpcap_init(char *ip, int sp, unsigned char options, char *miscptr, F
|
||||||
char buffer[] = "\x00\x08\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00";
|
char buffer[] = "\x00\x08\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00";
|
||||||
|
|
||||||
hydra_register_socket(sp);
|
hydra_register_socket(sp);
|
||||||
if (sock >= 0)
|
|
||||||
sock = hydra_disconnect(sock);
|
|
||||||
if ((options & OPTION_SSL) == 0) {
|
if ((options & OPTION_SSL) == 0) {
|
||||||
if (port != 0)
|
if (port != 0)
|
||||||
myport = port;
|
myport = port;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue