1. 18 1月, 2013 2 次提交
    • J
      network: Resolve some issues around vlan copying · 35ed25bd
      John Ferlan 提交于
      Remove extraneous check for 'netdef' when dereferencing for vlan.nTags.
      Prior code would already check if netdef was NULL.
      
      Coverity complained about a path where the 'vlan' was potentially valid,
      but a prior checks may not have allocated 'iface->data.network.actual',
      so like other paths it needs to be allocated on the fly.
      
      Move the copying of vlan up earlier in networkAllocateActualDevice, so
      that actual.type gets properly set.
      
      Since the first assignment to vlan is redundant except in the case of
      jumping immediately to validate from the start of the function,
      eliminate its initial setting at the top of the function in favor of
      calling the helper function virDomainNetGetActualVlan() (which doesn't
      depend on the local vlan pointer being initialized) down at validate:
      Signed-off-by: NLaine Stump <laine@redhat.com>
      35ed25bd
    • D
      Fix inheritance of virNetClient · 757e3d3a
      Daniel P. Berrange 提交于
      When creating the virClass object for virNetClient, we specified
      virObject as the parent instead of virObjectLockable
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      757e3d3a
  2. 17 1月, 2013 30 次提交
  3. 16 1月, 2013 8 次提交