lib9p: fix Tattach ref count bug
This commit is contained in:
parent
d630b67e25
commit
845f6bce38
@ -227,7 +227,7 @@ sattach(Srv *srv, Req *r)
|
|||||||
r->fid->uid = estrdup9p(r->ifcall.uname);
|
r->fid->uid = estrdup9p(r->ifcall.uname);
|
||||||
if(srv->tree){
|
if(srv->tree){
|
||||||
r->fid->file = srv->tree->root;
|
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->ofcall.qid = r->fid->file->dir.qid;
|
||||||
r->fid->qid = r->ofcall.qid;
|
r->fid->qid = r->ofcall.qid;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user