From 7ef496a5a208ed2403fbd32548a02c06f4acd89f Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Thu, 7 Mar 2013 01:23:49 +0100 Subject: [PATCH] feature #1691: Fix bug when setting up nic for attachment --- src/vm/VirtualMachine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/VirtualMachine.cc b/src/vm/VirtualMachine.cc index a14e21fbdc..e76ab8da16 100644 --- a/src/vm/VirtualMachine.cc +++ b/src/vm/VirtualMachine.cc @@ -1924,7 +1924,7 @@ VectorAttribute * VirtualMachine::set_up_attach_nic( int rc = vnpool->nic_attribute(new_nic, max_nic_id+1, uid, vm_id, error_str); - if ( rc != -1 ) //-2 is not using a pre-defined network + if ( rc == -1 ) //-2 is not using a pre-defined network { delete new_nic; return 0;