freerpc(nil)

This commit is contained in:
rsc 2006-01-27 04:12:35 +00:00
parent 1ac60148eb
commit 22157b7a34

View file

@ -80,6 +80,8 @@ auth_allocrpc(void)
void
auth_freerpc(AuthRpc *rpc)
{
if(rpc == nil)
return;
if(rpc->afd >= 0)
close(rpc->afd);
if(rpc->afid != nil)