From 6f6bce6a658e80d95e3abe1a7661323b717b5352 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 30 Jun 2010 00:58:04 -0400 Subject: [PATCH] Fix possible error stack overflow in last commit. --- cmd/wmii/fs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/wmii/fs.c b/cmd/wmii/fs.c index 7f5a59e4..bd7ab951 100644 --- a/cmd/wmii/fs.c +++ b/cmd/wmii/fs.c @@ -492,13 +492,8 @@ fs_write(Ixp9Req *r) { return; } - if(waserror()) { - ixp_respond(r, ixp_errbuf()); - return; - } - switch(f->tab.type) { - case FsFCtags: + case FsFCtags: r->ofcall.io.count = r->ifcall.io.count; ixp_srv_data2cstring(r); client_applytags(f->p.client, r->ifcall.io.data); @@ -506,6 +501,11 @@ fs_write(Ixp9Req *r) { return; } + if(waserror()) { + ixp_respond(r, ixp_errbuf()); + return; + } + t = &actiontab[f->tab.type]; if(f->tab.type < nelem(actiontab)) { if(t->msg) {