diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-06-01 13:10:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-06-01 13:10:54 +0000 |
commit | 26a60f90c7a143e29793cddc721b8e5427fa2a6c (patch) | |
tree | 7f0f18f83e947b927358bd86768652cd4362aa84 /nis/nis_findserv.c | |
parent | 6e607d847cc9ad50610238da03a92c4b01eb577a (diff) | |
download | glibc-26a60f90c7a143e29793cddc721b8e5427fa2a6c.tar.gz glibc-26a60f90c7a143e29793cddc721b8e5427fa2a6c.tar.xz glibc-26a60f90c7a143e29793cddc721b8e5427fa2a6c.zip |
Update.
1998-06-01 Thorsten Kukuk <kukuk@vt.uni-paderborn.de> * nis/nis_call.c: Make directory search faster. * nis/nis_callback.c: Insert public key of user in callback data. * nis/nis_clone_obj.c: Make size from type u_long, not u_int. * nis/nis_creategroup.c: Check for NULL pointer, fill in more fields. * nis/nis_findserv.c: Rename __pmap_getport to __pmap_getnisport. * nis/nis_intern.h: Remove duplicated prototype. 1998-06-01 Thorsten Kukuk <kukuk@vt.uni-paderborn.de> * sunrpc/auth_des.c: Move prototypes from here ... * sunrpc/rpc/auth.h: ... to here. * sunrpc/clnt_tcp.c: Add more control flags. * sunrpc/clnt_udp.c: Likewise. * sunrpc/netname.c (host2netname): Remove prefixing dot from domainname. * sunrpc/rpc/clnt.h: Document, which control flags are not implementable. * sunrpc/svcauth_des.c: Use key_decryptsession_pk to avoid deadlock.
Diffstat (limited to 'nis/nis_findserv.c')
-rw-r--r-- | nis/nis_findserv.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nis/nis_findserv.c b/nis/nis_findserv.c index b6abff133d..0e9f01700d 100644 --- a/nis/nis_findserv.c +++ b/nis/nis_findserv.c @@ -60,9 +60,9 @@ struct cu_data * Calls the pmap service remotely to do the lookup. * Returns 0 if no map exists. */ -static u_short -__pmap_getport (struct sockaddr_in *address, u_long program, - u_long version, u_int protocol) +u_short +__pmap_getnisport (struct sockaddr_in *address, u_long program, + u_long version, u_int protocol) { const struct timeval timeout = {1, 0}; const struct timeval tottimeout = {1, 0}; @@ -144,8 +144,9 @@ __nis_findfastest (dir_binding * bind) inetstr2int (bind->server_val[i].ep.ep_val[j].uaddr); if (sin.sin_addr.s_addr == 0) continue; - sin.sin_port = htons (__pmap_getport (&sin, NIS_PROG, - NIS_VERSION, IPPROTO_UDP)); + sin.sin_port = htons (__pmap_getnisport (&sin, NIS_PROG, + NIS_VERSION, + IPPROTO_UDP)); if (sin.sin_port == 0) continue; @@ -184,6 +185,7 @@ __nis_findfastest (dir_binding * bind) free (pings); return -1; } + auth_destroy (clnt->cl_auth); clnt->cl_auth = authunix_create_default (); cu = (struct cu_data *) clnt->cl_private; clnt_control (clnt, CLSET_TIMEOUT, (char *) &TIMEOUT00); |