aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libauth/auth_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libauth/auth_rpc.c b/src/libauth/auth_rpc.c
index b9fa737e..6df4d096 100644
--- a/src/libauth/auth_rpc.c
+++ b/src/libauth/auth_rpc.c
@@ -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);
}