projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c495bf2
)
(__nis_create_callback): Fix port problem on big-endian machines.
author
drepper
<drepper>
Tue, 3 Aug 1999 17:14:54 +0000
(17:14 +0000)
committer
drepper
<drepper>
Tue, 3 Aug 1999 17:14:54 +0000
(17:14 +0000)
nis/nis_callback.c
patch
|
blob
|
history
diff --git
a/nis/nis_callback.c
b/nis/nis_callback.c
index
eb54644
..
cf96b42
100644
(file)
--- 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;