Commit Diff


commit - 0cbccd3a0e84526d0de02d003d88c456be1f0ca7
commit + 0c891f28dbdc5a61b191d778391664417aae445c
blob - b9fa737e5be971fe6ad611992360505ebcc2ede5
blob + 6df4d096fd5c372eb4a7f6427cd21f238cac679b
--- src/libauth/auth_rpc.c
+++ 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);
 }