tools/libxc: goto correct label on error paths
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 27 Jan 2014 16:25:24 +0000 (16:25 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 4 Feb 2014 14:37:10 +0000 (14:37 +0000)
commitc2ba706c44813342269eb5cb2288552dc5f2a9a7
tree44d3327e640cdb0645a8a762f0cb9c8e5cfa7587
parentaf172d655c3900822d1f710ac13ee38ee9d482d2
tools/libxc: goto correct label on error paths

Both of these "goto finish;" statements are actually errors, and need to "goto
out;" instead, which will correctly destroy the domain and return an error,
rather than trying to finish the migration (and in at least one scenario,
return success).

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: George Dunlap <george.dunlap@eu.citrix.com>
tools/libxc/xc_domain_restore.c