mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Use macro instead of sizeof
- p += sizeof(HEADER); + p += NS_HFIXEDSZ;
This commit is contained in:
parent
f1e5201bf7
commit
e8c4add1a3
@ -213,7 +213,7 @@ int ldap_domain2hostlist(
|
||||
|
||||
/* Parse out query */
|
||||
p = reply;
|
||||
p += sizeof(HEADER);
|
||||
p += NS_HFIXEDSZ;
|
||||
status = dn_expand(reply, reply + len, p, host, sizeof(host));
|
||||
if (status < 0) {
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user