Age | Commit message (Collapse) | Author |
|
|
|
* ops.c (op_readlink): Before returning, check if the buffer
pointed to by transp is ours. If not, munmap it.
(op_read): Likewise for bp.
(op_readdir): Don't alloca a buffer here. Instead initialize
BUF and BUFSIZE to 0 and let the server (eh, MiG) do it.
munmap BUF before returning.
|
|
* cache.c (scan_creds): Move I inside for-statement.
Replace inner for-loop with a while-loop. New variable
NEXT_I set to I->NEXT, because we might free I.
Set I to NEXT_I at end of while block.
Move update of leastidlastuse inside if block, because
otherwise we will constantly prevent ourself from scanning.
(scan_fhs): Very much the same.
(scan_replies): Likewise. Also free CR.
(check_cached_reply): Make HASH value absolute (as XID can be
negative, and thus the modulus).
Initialize REFERENCES to 1.
|
|
|
|
|
|
* cache.c (create_cached_handle): Use munmap instead of
vm_deallocate.
|
|
|
|
|
|
* nfsd.h (enum_t): New type.
* cache.c: Don't inclide <rpc/auth_unix.h>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|