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

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