Changeset 27 for trunk/src/rules_mgmt.c

Show
Ignore:
Timestamp:
04/05/07 18:10:36 (16 years ago)
Author:
andreu
Message:

explicite output to find wrong definition bug - memory leak in renetcolAgg find

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/rules_mgmt.c

    r17 r27  
    8282      printHostDef(rPtr->host); 
    8383    } 
    84     invPrintFieldSet(rPtr->fieldToRecord); 
     84/*     invPrintFieldSet(rPtr->fieldToRecord); */ 
    8585    printRule(rPtr->next); 
    8686  } 
     
    174174  int cptLine; 
    175175   
    176   if (!(ruleFile = fopen(filename, "r"))) { 
     176  if ((ruleFile = fopen(filename, "r")) == NULL) { 
    177177    syslog(LOG_ERR, "error during %s opening\n", filename); 
    178178    exit(1); 
     
    469469      if ((ft==1) || (ft==25)){ 
    470470          tmp->value = addValue(tmp->value, operatorToNumber, value); 
    471       } else if ( (ft==8) || (ft==12) || (ft==15) || (ft==18) ){ 
     471      } else if ( (ft==0) || (ft==8) || (ft==12) || (ft==15) || (ft==18) ){ 
    472472          tmp->value = addAddress(tmp->value, operatorToNumber, value); 
    473473      } else if ( (ft==27) || (ft==28) || (ft==62) || (ft==63) ){