aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auth/factotum
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/auth/factotum')
-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;
}