diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-05-16 10:14:25 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-05-16 10:14:25 +0000 |
commit | 32abdb710c9335481da780eab5ad790318d2fadf (patch) | |
tree | 70c94809f5ec43a895c614a445a32f4d18d925c5 /sunrpc | |
parent | 7d853c902b9f79a32c8c1921b16107648c15f0e3 (diff) | |
download | glibc-32abdb710c9335481da780eab5ad790318d2fadf.zip glibc-32abdb710c9335481da780eab5ad790318d2fadf.tar.gz glibc-32abdb710c9335481da780eab5ad790318d2fadf.tar.bz2 |
Update.
1999-05-16 Thorsten Kukuk <kukuk@suse.de>
* sunrpc/etc.rpc: Add portmapper, rstat_svc and pcnfs.
* sunrpc/key_call.c: Fix memory leak, close file handle.
* nis/nis_creategroup.c: Use malloc instead of calloc,
set ctime and mtime.
* nis/nis_subr.c: Check for realloc result.
* nis/nis_file.c: Fix memory leak.
* nis/nis_table.c: Pretty print.
* nis/nis_getservlist.c: Likewise.
* nis/nis_ismember.c: Likewise.
* nis/nis_lookup.c: Likewise.
* nis/nis_ping.c: Likewise.
* nis/nis_removemember.c: Likewise.
* nis/nis_util.c: Likewise, check calloc result.
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/etc.rpc | 8 | ||||
-rw-r--r-- | sunrpc/key_call.c | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/sunrpc/etc.rpc b/sunrpc/etc.rpc index 2987459..a80522f 100644 --- a/sunrpc/etc.rpc +++ b/sunrpc/etc.rpc @@ -2,8 +2,8 @@ # # rpc # -rpcbind 100000 portmap sunrpc rpcbind -rstatd 100001 rstat rup perfmeter +portmapper 100000 portmap sunrpc rpcbind +rstatd 100001 rstat rup perfmeter rstat_svc rusersd 100002 rusers nfs 100003 nfsprog ypserv 100004 ypprog @@ -26,9 +26,9 @@ nlockmgr 100021 x25.inr 100022 statmon 100023 status 100024 +bootparam 100026 ypupdated 100028 ypupdate keyserv 100029 keyserver -bootparam 100026 sunlink_mapper 100033 tfsd 100037 nsed 100038 @@ -62,7 +62,7 @@ sadmind 100232 nisd 100300 rpc.nisd nispasswd 100303 rpc.nispasswdd ufsd 100233 ufsd -pcnfsd 150001 +pcnfsd 150001 pcnfs amd 300019 amq bwnfsd 545580417 fypxfrd 600100069 freebsd-ypxfrd diff --git a/sunrpc/key_call.c b/sunrpc/key_call.c index 5aef933..2f4ca25 100644 --- a/sunrpc/key_call.c +++ b/sunrpc/key_call.c @@ -491,7 +491,7 @@ key_call_door (u_long proc, xdrproc_t xdr_arg, char *arg, xdrproc_t xdr_rslt, char *rslt) { XDR xdrs; - int fd; + int fd, ret; door_arg_t args; char *data_ptr; u_long data_len = 0; @@ -525,12 +525,13 @@ key_call_door (u_long proc, xdrproc_t xdr_arg, char *arg, args.rbuf = res; args.rsize = sizeof (res); - if (__door_call (fd, &args) < 0) - return 0; - + ret = __door_call (fd, &args); free (data_ptr); close (fd); + if (ret < 0) + return 0; + memcpy (&data_len, args.data_ptr, sizeof (u_long)); if (data_len != 0) return 0; |