mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 12:17:26 +01:00
see #2508 function TCPUDPService::cmp should make sure object passed as a argument is of compatible type before using; this fixes the crash
This commit is contained in:
parent
cebdfc5111
commit
70a5b9ac7c
@ -122,6 +122,7 @@ FWObject& TCPUDPService::shallowDuplicate(const FWObject *obj,
|
||||
bool TCPUDPService::cmp(const FWObject *obj, bool recursive) throw(FWException)
|
||||
{
|
||||
const TCPUDPService *other = TCPUDPService::constcast(obj);
|
||||
if (other == NULL) return false;
|
||||
if (src_range_start != other->src_range_start ||
|
||||
src_range_end != other->src_range_end ||
|
||||
dst_range_start != other->dst_range_start ||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user