tpm: Set transationStarted to false if commit failed
tpm: Set transationStarted to false if commit failed

Set the transactionStarted to false if the commit failed. If this is not
done, then the failure path will report 'no transaction is set' and hide
more useful error reports.

Signed-off-by: Stefan Berger <5c96973112e540fb909b13997fcd087e5bfbee96@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>
Message-Id: <20190726210706.24440-2-5c96973112e540fb909b13997fcd087e5bfbee96@linux.ibm.com>

olafhering/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,crobinso/libvirt,libvirt/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,libvirt/libvirt,jfehlig/libvirt,olafhering/libvirt,andreabolognani/libvirt,jfehlig/libvirt,zippy2/libvirt,crobinso/libvirt,crobinso/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,libvirt/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,olafhering/libvirt,andreabolognani/libvirt,jardasgit/libvirt,andreabolognani/libvirt,zippy2/libvirt,jfehlig/libvirt,jardasgit/libvirt,crobinso/libvirt,jardasgit/libvirt,olafhering/libvirt,libvirt/libvirt,jardasgit/libvirt,zippy2/libvirt,nertpinx/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,nertpinx/libvirt