aboutsummaryrefslogtreecommitdiff
path: root/src/lib9p
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-02-04 15:34:00 -0500
committerRuss Cox <rsc@swtch.com>2008-02-04 15:34:00 -0500
commit845f6bce384affec3885e34dcb0358fb6653017f (patch)
tree723ff2973c8d54625a7062217311bc00f52ba2b5 /src/lib9p
parentd630b67e2530b5ee94710cc931db73d7a9c97225 (diff)
downloadplan9port-845f6bce384affec3885e34dcb0358fb6653017f.tar.gz
plan9port-845f6bce384affec3885e34dcb0358fb6653017f.tar.bz2
plan9port-845f6bce384affec3885e34dcb0358fb6653017f.zip
lib9p: fix Tattach ref count bug
Diffstat (limited to 'src/lib9p')
-rw-r--r--src/lib9p/srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9p/srv.c b/src/lib9p/srv.c
index 52d4bccf..7393b3c2 100644
--- a/src/lib9p/srv.c
+++ b/src/lib9p/srv.c
@@ -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;
}