twhoops -- close afid in auth_freerpc - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0c891f28dbdc5a61b191d778391664417aae445c
DIR parent 0cbccd3a0e84526d0de02d003d88c456be1f0ca7
HTML Author: rsc <devnull@localhost>
Date: Tue, 15 Feb 2005 05:04:36 +0000
whoops -- close afid in auth_freerpc
Diffstat:
M src/libauth/auth_rpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/libauth/auth_rpc.c b/src/libauth/auth_rpc.c
t@@ -82,7 +82,7 @@ auth_freerpc(AuthRpc *rpc)
{
if(rpc->afd >= 0)
close(rpc->afd);
- if(rpc->afid == nil)
+ if(rpc->afid != nil)
fsclose(rpc->afid);
free(rpc);
}