mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +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 */
|
/* Parse out query */
|
||||||
p = reply;
|
p = reply;
|
||||||
p += sizeof(HEADER);
|
p += NS_HFIXEDSZ;
|
||||||
status = dn_expand(reply, reply + len, p, host, sizeof(host));
|
status = dn_expand(reply, reply + len, p, host, sizeof(host));
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user