"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/dce_rpc/ips_dce_opnum.cc" between
snort3-3.1.29.0.tar.gz and snort3-3.1.30.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.

ips_dce_opnum.cc  (snort3-3.1.29.0):ips_dce_opnum.cc  (snort3-3.1.30.0)
skipping to change at line 493 skipping to change at line 493
opnum.opnum_hi = 0; opnum.opnum_hi = 0;
opnum.mask_size = 0; opnum.mask_size = 0;
opnum.mask = nullptr; opnum.mask = nullptr;
return true; return true;
} }
bool Dce2OpnumModule::set(const char*, Value& v, SnortConfig*) bool Dce2OpnumModule::set(const char*, Value& v, SnortConfig*)
{ {
assert(v.is("~")); assert(v.is("~"));
std::string tok = v.get_unquoted_string();
std::string tok (v.get_string());
if ( tok[0] == '"' )
tok.erase(0, 1);
if ( tok[tok.length()-1] == '"' )
tok.erase(tok.length()-1, 1);
char* s = snort_strdup(tok.c_str()); char* s = snort_strdup(tok.c_str());
DCE2_Ret status = DCE2_OpnumParse(s, &opnum); DCE2_Ret status = DCE2_OpnumParse(s, &opnum);
snort_free(s); snort_free(s);
return (status == DCE2_RET__SUCCESS); return (status == DCE2_RET__SUCCESS);
} }
ProfileStats* Dce2OpnumModule::get_profile() const ProfileStats* Dce2OpnumModule::get_profile() const
{ {
return &dce2_opnum_perf_stats; return &dce2_opnum_perf_stats;
 End of changes. 1 change blocks. 
9 lines changed or deleted 1 lines changed or added

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