1
0
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:
Vadim Kurland 2011-06-20 17:49:57 -07:00
parent cebdfc5111
commit 70a5b9ac7c

View File

@ -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 ||