Changeset 637731dd84df22000af7615a62662e35d76413a9

Show
Ignore:
Timestamp:
02/17/11 15:49:15 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1297957755 +0000
git-parent:

[7d308b7989cb04229e214e3ca04435922d9965c8]

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

fixes #350

Files:

Legend:

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

    ra098b4f r637731d  
    176176  int removed; 
    177177  xmlNodePtr node = vnode; 
    178   char *name = (char *)node->name; 
     178  char *name = (char *)xmlGetProp(vnode, (xmlChar *)"name"); 
     179  if(!name) return 0; 
    179180  LOCKFS(); 
    180181  removed = noit_hash_delete(filtersets, name, strlen(name), 
  • src/noit_filters_rest.c

    rd83c60e r637731d  
    147147  node = noit_conf_get_section(NULL, xpath); 
    148148  if(!node) goto not_found; 
    149   noit_filter_remove(node); 
     149  if(noit_filter_remove(node) == 0) goto not_found; 
     150  xmlUnlinkNode(node); 
     151  xmlFreeNode(node); 
    150152 
    151153  if(noit_conf_write_file(NULL) != 0)