tfreerpc(nil) - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 22157b7a34bfaf5df78a6db6eafdf657ac23eb57
(DIR) parent 1ac60148eb818857ad667789cb84973e76f02a4f
(HTM) Author: rsc <devnull@localhost>
Date: Fri, 27 Jan 2006 04:12:35 +0000
freerpc(nil)
Diffstat:
M src/libauth/auth_rpc.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/libauth/auth_rpc.c b/src/libauth/auth_rpc.c
t@@ -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)