]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix URI connect precedence
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 21 Aug 2013 09:02:42 +0000 (11:02 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2013 13:48:22 +0000 (15:48 +0200)
commit4c881b5503753fb2d219cba40062d8c0be4b6040
tree08d25c75694867fb9abb7457bc8f5b2681bede05
parentcdc148ec5b3f1bfdd06862a41ff81ccc29584f08
Fix URI connect precedence

Commit abfff210 changed the order of vshParseArgv() and vshInit() in
order to make fix debugging of parameter parsing.  However, vshInit()
did a vshReconnect() even though ctl->name wasn't set according to the
'-c' parameter yet.  In order to keep both issues fixed, I've split
the vshInit() into vshInitDebug() and vshInit().

One simple memleak of ctl->name is fixed as a part of this patch,
since it is related to the issue it's fixing.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=999323
(cherry picked from commit a0b6a36f9456dae895f50d344fd2d38be1167c58)
tools/virsh.c