aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-03-18 23:16:34 +0000
committerrsc <devnull@localhost>2005-03-18 23:16:34 +0000
commit80097b018284589b1a3dd8d59549bbf7d3c67e8b (patch)
tree61bbd72fe19b7eabc134d3082d90d3ded3c299f6 /src
parent257d7b48a653c7aac41a38b28f6c8c2e39241c92 (diff)
downloadplan9port-80097b018284589b1a3dd8d59549bbf7d3c67e8b.tar.gz
plan9port-80097b018284589b1a3dd8d59549bbf7d3c67e8b.tar.bz2
plan9port-80097b018284589b1a3dd8d59549bbf7d3c67e8b.zip
fix race
Diffstat (limited to 'src')
-rw-r--r--src/cmd/auth/factotum/fs.c6
1 files changed, 3 insertions, 3 deletions
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;
}