lists.arthurdejong.org
RSS feed

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



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