nss-pam-ldapd commit: r1167 - nss-pam-ldapd/nss
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1167 - nss-pam-ldapd/nss
- From: "Commits of the nss-pam-ldapd project." <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1167 - nss-pam-ldapd/nss
- Date: Tue, 27 Jul 2010 08:26:09 +0200 (CEST)
Author: arthur
Date: Tue Jul 27 08:26:08 2010
New Revision: 1167
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1167
Log:
use htons() instead of ntohs() (thanks Ted C. Cheng)
Modified:
nss-pam-ldapd/nss/services.c
Modified: nss-pam-ldapd/nss/services.c
==============================================================================
--- nss-pam-ldapd/nss/services.c Sun Jul 18 13:40:55 2010 (r1166)
+++ nss-pam-ldapd/nss/services.c Tue Jul 27 08:26:08 2010 (r1167)
@@ -39,7 +39,7 @@
READ_BUF_STRINGLIST(fp,result->s_aliases);
/* store port number in network byte order */
READ_TYPE(fp,tmpint32,int32_t);
- result->s_port=ntohs((uint16_t)tmpint32);
+ result->s_port=htons((uint16_t)tmpint32);
READ_BUF_STRING(fp,result->s_proto);
/* we're done */
return NSS_STATUS_SUCCESS;
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits
- nss-pam-ldapd commit: r1167 - nss-pam-ldapd/nss,
Commits of the nss-pam-ldapd project.