mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
Minor tweak to last commit
This commit is contained in:
parent
6c27bf332c
commit
1d933bf8ec
1 changed files with 7 additions and 5 deletions
|
|
@ -226,16 +226,18 @@ int ldap_domain2hostlist(
|
|||
|
||||
/* Parse out query */
|
||||
p = reply;
|
||||
|
||||
#ifdef NS_HFIXEDSZ
|
||||
/* Bind 8/9 interface */
|
||||
p += NS_HFIXEDSZ;
|
||||
#else
|
||||
#ifndef HFIXEDSZ
|
||||
#define HFIXEDSZ sizeof(HEADER)
|
||||
#endif
|
||||
/* Bind 4 interface */
|
||||
#elif defined(HFIXEDSZ)
|
||||
/* Bind 4 interface w/ HFIXEDSZ */
|
||||
p += HFIXEDSZ;
|
||||
#else
|
||||
/* Bind 4 interface w/o HFIXEDSZ */
|
||||
p += sizeof(HEADER);
|
||||
#endif
|
||||
|
||||
status = dn_expand(reply, reply + len, p, host, sizeof(host));
|
||||
if (status < 0) {
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue