[libvirt] [perl PATCH 6/6] Fix data type for VIR_CONNECT_IDENTITY_SASL_USER_NAME

Daniel P. Berrangé berrange at redhat.com
Tue Dec 10 13:17:19 UTC 2019


Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 Changes         | 2 ++
 lib/Sys/Virt.xs | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Changes b/Changes
index 9d9a5c8..e90e736 100644
--- a/Changes
+++ b/Changes
@@ -11,6 +11,8 @@ Revision history for perl module Sys::Virt
  - Add VIR_MIGRATE_PARAM_TLS_DESTINATION constant
  - Add missing create_checkpoint method on Sys::Virt::Domain
  - Remove docs for has_metadata method which doesn't exit
+ - Fix data type for VIR_CONNECT_IDENTITY_SASL_USER_NAME
+   parameter
 
 5.10.0 2019-12-03
 
diff --git a/lib/Sys/Virt.xs b/lib/Sys/Virt.xs
index 3245adf..ab12ef0 100644
--- a/lib/Sys/Virt.xs
+++ b/lib/Sys/Virt.xs
@@ -2738,7 +2738,7 @@ set_identity(conn, newident, flags=0)
 
       strncpy(ident[6].field, VIR_CONNECT_IDENTITY_SASL_USER_NAME,
               VIR_TYPED_PARAM_FIELD_LENGTH);
-      ident[6].type = VIR_TYPED_PARAM_INT;
+      ident[6].type = VIR_TYPED_PARAM_STRING;
 
       strncpy(ident[7].field, VIR_CONNECT_IDENTITY_X509_DISTINGUISHED_NAME,
               VIR_TYPED_PARAM_FIELD_LENGTH);
-- 
2.23.0




More information about the libvir-list mailing list