From afb568e5c6cbad8e119b44dadf589a8d29e95f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 18 Feb 2015 12:48:09 +0100 Subject: [PATCH] Bug #3607: Fix updatear with restricted attributes --- src/vnm/AddressRange.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vnm/AddressRange.cc b/src/vnm/AddressRange.cc index 400a9745fe..436734ddd9 100644 --- a/src/vnm/AddressRange.cc +++ b/src/vnm/AddressRange.cc @@ -277,9 +277,10 @@ int AddressRange::update_attributes( if (keep_restricted && restricted_set) { - remove_all_except_restricted(attr); + VectorAttribute va_aux(*attr); + remove_all_except_restricted(&va_aux); - vup->merge(attr, true); + vup->merge(&va_aux, true); } /* ----------------- update known attributes ----------------- */