fixed server crash on interface delete
authorVictor Kirhenshtein <victor@netxms.org>
Thu, 18 Aug 2016 15:26:39 +0000 (18:26 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Thu, 18 Aug 2016 15:26:39 +0000 (18:26 +0300)
src/server/core/node.cpp

index b3a1670..ce7278a 100644 (file)
@@ -1202,7 +1202,7 @@ void Node::deleteInterface(Interface *iface)
          lockChildList(false);
          for(int j = 0; j < m_childList->size(); j++)
          {
-            NetObj *curr = m_childList->get(i);
+            NetObj *curr = m_childList->get(j);
             if ((curr->getObjectClass() == OBJECT_INTERFACE) && (curr != iface) &&
                 ((Interface *)curr)->getIpAddressList()->findSameSubnetAddress(*addr).isValid())
             {