lib9p: fix Tattach ref count bug

This commit is contained in:
Russ Cox 2008-02-04 15:34:00 -05:00
parent d630b67e25
commit 845f6bce38

View file

@ -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;
}