]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: identity: Harden virIdentitySetCurrent()
authorPeter Krempa <pkrempa@redhat.com>
Wed, 25 Mar 2015 07:25:45 +0000 (08:25 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Mar 2015 12:37:41 +0000 (13:37 +0100)
commitad886fa6c8ebc321a0386a75c187d315111cf1f3
tree958428d2b31ba064b2221705b032b189b669dde0
parent785fd9fa125a8f89a434fcb6e7624f599892e3a4
util: identity: Harden virIdentitySetCurrent()

Don't unref the old identity unless we set the new one correctly and
unref the new one on failure to set it so that we don't leak any
references or use invalid pointers.
src/util/viridentity.c