From 80097b018284589b1a3dd8d59549bbf7d3c67e8b Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 18 Mar 2005 23:16:34 +0000 Subject: fix race --- src/cmd/auth/factotum/fs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd/auth/factotum') diff --git a/src/cmd/auth/factotum/fs.c b/src/cmd/auth/factotum/fs.c index bd6c105e..698d3305 100644 --- a/src/cmd/auth/factotum/fs.c +++ b/src/cmd/auth/factotum/fs.c @@ -231,9 +231,9 @@ fskickreply(Conv *c) Req *r; if(c->hangup){ - if(c->req){ - respond(c->req, "hangup"); + if((r = c->req) != nil){ c->req = nil; + respond(r, "hangup"); } return; } @@ -246,8 +246,8 @@ fskickreply(Conv *c) r->ofcall.data = c->reply; if(r->ofcall.count > r->ifcall.count) r->ofcall.count = r->ifcall.count; - respond(r, nil); c->req = nil; + respond(r, nil); c->nreply = 0; } -- cgit v1.2.3