freerpc(nil)
This commit is contained in:
parent
1ac60148eb
commit
22157b7a34
@ -80,6 +80,8 @@ auth_allocrpc(void)
|
|||||||
void
|
void
|
||||||
auth_freerpc(AuthRpc *rpc)
|
auth_freerpc(AuthRpc *rpc)
|
||||||
{
|
{
|
||||||
|
if(rpc == nil)
|
||||||
|
return;
|
||||||
if(rpc->afd >= 0)
|
if(rpc->afd >= 0)
|
||||||
close(rpc->afd);
|
close(rpc->afd);
|
||||||
if(rpc->afid != nil)
|
if(rpc->afid != nil)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user