Changeset 408e1b41bdb6ca5a28363b80d3055a602c80dcc3

Show
Ignore:
Timestamp:
02/02/10 19:33:25 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1265139205 +0000
git-parent:

[d845c8de9fd740799908f6efe95a605f4e6b75be]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1265139205 +0000
Message:

require the filterset to exist

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_check_rest.c

    r33756c8 r408e1b4  
    4444#include "noit_conf.h" 
    4545#include "noit_conf_private.h" 
     46#include "noit_filters.h" 
    4647 
    4748#define FAIL(a) do { error = (a); goto error; } while(0) 
     
    299300          timeout = 1; 
    300301        } 
    301         else CHECK_N_SET(filterset) filterset = 1; 
     302        else CHECK_N_SET(filterset) { 
     303          xmlChar *tmp; 
     304          tmp = xmlNodeGetContent(an); 
     305          if(!noit_filter_exists((char *)tmp)) { 
     306            *error = "filterset does not exist"; 
     307            return 0; 
     308          } 
     309          filterset = 1; 
     310        } 
    302311        else CHECK_N_SET(disable) { /* not required */ 
    303312          int valid;