lib9p: fix Tattach ref count bug
This commit is contained in:
parent
d630b67e25
commit
845f6bce38
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ sattach(Srv *srv, Req *r)
|
|||
r->fid->uid = estrdup9p(r->ifcall.uname);
|
||||
if(srv->tree){
|
||||
r->fid->file = srv->tree->root;
|
||||
/* BUG? incref(r->fid->file) ??? */
|
||||
incref(&r->fid->file->ref);
|
||||
r->ofcall.qid = r->fid->file->dir.qid;
|
||||
r->fid->qid = r->ofcall.qid;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue