mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 10:37:27 -07:00
ldap fix
This commit is contained in:
parent
b32f0c0633
commit
fc9350cfdf
2 changed files with 2 additions and 1 deletions
1
CHANGES
1
CHANGES
|
@ -4,6 +4,7 @@ Changelog for hydra
|
|||
|
||||
Release 8.7-dev
|
||||
* New web page: https://github.com/vanhauser-thc/thc-hydra
|
||||
* ldap: fixed a dumb strlen on a potential null pointer
|
||||
* http-get/http-post:
|
||||
- now supports H=/h= parameters same as http-form (thanks to mathewmarcus@github for the patch)
|
||||
- 403/404 errors are now always registered as failed attempts
|
||||
|
|
|
@ -451,7 +451,7 @@ int32_t service_ldap_init(char *ip, int32_t sp, unsigned char options, char *mis
|
|||
// return codes:
|
||||
// 0 all OK
|
||||
// -1 error, hydra will exit, so print a good error message here
|
||||
if (strlen(miscptr) > 220) {
|
||||
if (miscptr != NULL && strlen(miscptr) > 220) {
|
||||
fprintf(stderr, "[ERROR] the option string to this module may not be larger than 220 bytes\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue