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. (cherry picked from commit ad886fa6)
Showing
想要评论请 注册 或 登录