mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix possible under allocation of buffer
This commit is contained in:
parent
deb62446fe
commit
d13285fdd8
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ int ldap_domain2hostlist(
|
|||
/* weight = (p[2] << 8) | p[3]; */
|
||||
port = (p[4] << 8) | p[5];
|
||||
|
||||
buflen = strlen(host) + sizeof(":65355");
|
||||
buflen = strlen(host) + sizeof(":65355 ");
|
||||
hostlist = (char *) LDAP_REALLOC(hostlist, cur + buflen);
|
||||
if (hostlist == NULL) {
|
||||
rc = LDAP_NO_MEMORY;
|
||||
|
|
|
|||
Loading…
Reference in a new issue