diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2023-02-13 14:45:23 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2023-02-13 14:57:13 +0100 |
commit | 3f8aa91db35d1650d8826cf7cc74958954ca0a3f (patch) | |
tree | 2597a594b52ac03093e8ea34a8dbc1e30c3f6ad0 /libvirt-lxc-override-api.xml | |
parent | 1c88c411092b73fd36c632af0e5c4bebeae8cdbb (diff) | |
download | libvirt-python-3f8aa91db35d1650d8826cf7cc74958954ca0a3f.tar.gz |
libvirt_virConnectOpenAuth: Avoid plain PyLong_AsLong() call
When constructing the list of credentials to pass to
virConnectOpenAuth(), the virConnectAuth.credtype member is set
via plain PyLong_AsLong() without any error checking. Well, the
code relies on virConnectOpenAuth() to do sanity check of passed
arguments.
Switch to libvirt_intUnwrap() which does check for errors and
avoid needless trip to libvirt's public API upon error.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'libvirt-lxc-override-api.xml')
0 files changed, 0 insertions, 0 deletions