freerpc(nil)
This commit is contained in:
parent
1ac60148eb
commit
22157b7a34
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue