mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
Merge pull request #1021 from lhywk/fix/null-check-start_redis
Some checks failed
release / Build the docker image (push) Has been cancelled
Some checks failed
release / Build the docker image (push) Has been cancelled
Fix Add NULL check to prevent NULL pointer dereference in start_redis( )
This commit is contained in:
commit
96b42617d7
1 changed files with 5 additions and 0 deletions
|
@ -24,6 +24,11 @@ int32_t start_redis(int32_t s, char *ip, int32_t port, unsigned char options, ch
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
buf = hydra_receive_line(s);
|
buf = hydra_receive_line(s);
|
||||||
|
if (buf == NULL) {
|
||||||
|
hydra_report(stderr, "[ERROR] Failed to receive response from Redis server.\n");
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
|
||||||
if (buf[0] == '+') {
|
if (buf[0] == '+') {
|
||||||
hydra_report_found_host(port, ip, "redis", fp);
|
hydra_report_found_host(port, ip, "redis", fp);
|
||||||
hydra_completed_pair_found();
|
hydra_completed_pair_found();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue