This commit is contained in:
van Hauser 2018-12-11 19:01:48 +01:00
commit fc9350cfdf
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;
}