[hackers] [wmii] Fix possible error stack overflow in last commit. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Wed, 30 Jun 2010 04:58:15 +0000 (UTC)

changeset: 2751:90c1abaf8ba9
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Wed Jun 30 00:58:04 2010 -0400
files: cmd/wmii/fs.c
description:
Fix possible error stack overflow in last commit.

diff -r cc59a43e4472 -r 90c1abaf8ba9 cmd/wmii/fs.c
--- a/cmd/wmii/fs.c Tue Jun 29 13:40:51 2010 -0400
+++ b/cmd/wmii/fs.c Wed Jun 30 00:58:04 2010 -0400
@@ -492,13 +492,8 @@
                 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 @@
                 return;
         }
 
+ if(waserror()) {
+ ixp_respond(r, ixp_errbuf());
+ return;
+ }
+
         t = &actiontab[f->tab.type];
         if(f->tab.type < nelem(actiontab)) {
                 if(t->msg) {
Received on Wed Jun 30 2010 - 04:58:15 UTC

This archive was generated by hypermail 2.2.0 : Wed Jun 30 2010 - 05:00:07 UTC