Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/common.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-12-16 16:11:59 +0100
committerArthur de Jong <arthur@arthurdejong.org>2012-12-16 16:11:59 +0100
commit5f55781beb8bfc84412127b3777e1d1d126459b6 (patch)
tree59c221d593ded0dab58832bb793f7f2e22370536 /nslcd/common.c
parent99933fd3561df12ed81304eaf444c1d7d1060f38 (diff)
switch protocol from host byte order to network byte order and switch use of uid_t and gid_t in the protocol to int32
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1864 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/common.c')
-rw-r--r--nslcd/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/common.c b/nslcd/common.c
index ec20693..37542b9 100644
--- a/nslcd/common.c
+++ b/nslcd/common.c
@@ -165,7 +165,7 @@ int write_address(TFILE *fp,MYLDAP_ENTRY *entry,const char *attr,
/* write the address length */
WRITE_INT32(fp,sizeof(struct in_addr));
/* write the address itself (in network byte order) */
- WRITE_TYPE(fp,ipv4addr,struct in_addr);
+ WRITE(fp,&ipv4addr,sizeof(struct in_addr));
}
else if (inet_pton(AF_INET6,addr,&ipv6addr)>0)
{
@@ -174,7 +174,7 @@ int write_address(TFILE *fp,MYLDAP_ENTRY *entry,const char *attr,
/* write the address length */
WRITE_INT32(fp,sizeof(struct in6_addr));
/* write the address itself (in network byte order) */
- WRITE_TYPE(fp,ipv6addr,struct in6_addr);
+ WRITE(fp,&ipv6addr,sizeof(struct in6_addr));
}
else
{