PERFORCE change 103516 for review
Michael Bushkov
bushman at FreeBSD.org
Wed Aug 9 17:29:16 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103516
Change 103516 by bushman at bushman_nss_ldap_cached on 2006/08/09 17:29:08
Byte order conversion should have been used here.
Affected files ...
.. //depot/projects/soc2006/nss_ldap_cached/src/lib/nss_ldap/ldap_serv.c#7 edit
Differences ...
==== //depot/projects/soc2006/nss_ldap_cached/src/lib/nss_ldap/ldap_serv.c#7 (text+ko) ====
@@ -181,6 +181,8 @@
rv = __nss_ldap_assign_attr_int(sctx,
_AT(schema, ipServicePort),
&serv->s_port);
+ if (rv == NSS_LDAP_SUCCESS)
+ serv->s_port = ntohs(serv->s_port);
errfin:
return (rv);
More information about the p4-projects
mailing list