commit 6f6bce6a658e80d95e3abe1a7661323b717b5352
parent 9bfa6ce867b001ca9c47970c35418ea7019d2a66
Author: Kris Maglione <kris@suckless.org>
Date: Wed, 30 Jun 2010 00:58:04 -0400
Fix possible error stack overflow in last commit.
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git 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) {