From 845f6bce384affec3885e34dcb0358fb6653017f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 4 Feb 2008 15:34:00 -0500 Subject: lib9p: fix Tattach ref count bug --- src/lib9p/srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib9p') 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; } -- cgit v1.2.3