]> git.ipfire.org Git - thirdparty/libvirt.git/commit
polkit_driver: fix possible segfault
authorPavel Hrdina <phrdina@redhat.com>
Thu, 25 Sep 2014 09:13:29 +0000 (11:13 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 25 Sep 2014 10:53:37 +0000 (12:53 +0200)
commitc4b4b13ccb3129d605cca9245f94cb7ebffb0d51
treef560028e2806c4eba36cd2b6d8209e9bea35695b
parent18fc3199c2d45256ae1dd80d855cef9f1ec65118
polkit_driver: fix possible segfault

The changes in commit c7542573 introduced possible segfault. Looking
deeper into the code and the original code before the patch series were
applied I think that we should report error for each function failure
and also we shouldn't call some of the function twice.

Found by coverity.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/access/viraccessdriverpolkit.c