mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-13 16:39:48 +02: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:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user