diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-03 17:22:13 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-03 17:22:13 +0000 |
commit | d6f6ffa1664b0f39aa95973ff97f9995f51ff62d (patch) | |
tree | 276775c1c7a9a9378525c54b26f29dd8e0d4462d /nis/nis_callback.c | |
parent | 4bdd64534ff87261e204570697d7f7e83af5b6cd (diff) | |
download | glibc-d6f6ffa1664b0f39aa95973ff97f9995f51ff62d.zip glibc-d6f6ffa1664b0f39aa95973ff97f9995f51ff62d.tar.gz glibc-d6f6ffa1664b0f39aa95973ff97f9995f51ff62d.tar.bz2 |
Update.
1999-08-02 Thorsten Kukuk <kukuk@suse.de>
* nis/nis_callback.c: Fix port problem on big-endian machines
* sunrpc/clnt_udp.c: Cast to uint32_t pointer, not short. RPC
fields are always 32 bit.
Patches from Paul Mackerras <paulus@cs.anu.edu.au>
* nis/nss_nis/nis-service.c: Remove htons, port is always in
network-byte-order.
* nis/nss_nisplus/nisplus-service.c: Rename number to port.
Diffstat (limited to 'nis/nis_callback.c')
-rw-r--r-- | nis/nis_callback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nis_callback.c b/nis/nis_callback.c index eb54644..cf96b42 100644 --- a/nis/nis_callback.c +++ b/nis/nis_callback.c @@ -351,10 +351,10 @@ __nis_create_callback (int (*callback) (const_nis_name, const nis_object *, syslog (LOG_ERR, "NIS+: failed to read local socket info"); return NULL; } - port = sin.sin_port; + port = ntohs (sin.sin_port); get_myaddress (&sin); snprintf (addr, sizeof (addr), "%s.%d.%d", inet_ntoa (sin.sin_addr), - port & 0x00FF, (port & 0xFF00) >> 8); + (port & 0xFF00) >> 8, port & 0x00FF); cb->serv->ep.ep_val[0].uaddr = strdup (addr); return cb; |