"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/parser/parse_conf.cc" between
snort3-3.1.31.0.tar.gz and snort3-3.1.32.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

parse_conf.cc  (snort3-3.1.31.0):parse_conf.cc  (snort3-3.1.32.0)
skipping to change at line 210 skipping to change at line 210
return; return;
} }
push_parse_location(code, file.c_str(), arg); push_parse_location(code, file.c_str(), arg);
parse_rules_file(sc, file.c_str()); parse_rules_file(sc, file.c_str());
pop_parse_location(); pop_parse_location();
} }
void ParseIpVar(const char* var, const char* value) void ParseIpVar(const char* var, const char* value)
{ {
int ret; int ret;
IpsPolicy* p = get_ips_policy(); // FIXIT-M double check, see below IpsPolicy* p = get_ips_policy();
DisallowCrossTableDuplicateVars(var, VAR_TYPE__IPVAR); DisallowCrossTableDuplicateVars(var, VAR_TYPE__IPVAR);
// FIXIT-M: ip checked for duplicates twice: in the function above and in sf vt_add_str
if ((ret = sfvt_define(p->ip_vartable, var, value)) != SFIP_SUCCESS) if ((ret = sfvt_define(p->ip_vartable, var, value)) != SFIP_SUCCESS)
{ {
switch (ret) switch (ret)
{ {
case SFIP_ARG_ERR: case SFIP_ARG_ERR:
ParseError("the following is not allowed: %s.", value); ParseError("the following is not allowed: %s.", value);
return; return;
case SFIP_DUPLICATE: case SFIP_DUPLICATE:
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)