diff options
author | Peter Schiffer <pschiffe@redhat.com> | 2014-04-22 17:00:52 +0200 |
---|---|---|
committer | Peter Schiffer <pschiffe@redhat.com> | 2014-04-23 14:40:12 +0200 |
commit | a9b3e7f90b4d2e3f1e2de158bdd861c859e0c825 (patch) | |
tree | a2e2fd1540bf25b6bbba77cd4f74f455d562cb94 /src/software-dbus/LMI_SoftwareIdentityProvider.c | |
parent | e46160ae6f3ea48d4de4e09dfe6fb3ed2ae943b5 (diff) | |
download | openlmi-providers-a9b3e7f90b4d2e3f1e2de158bdd861c859e0c825.tar.gz openlmi-providers-a9b3e7f90b4d2e3f1e2de158bdd861c859e0c825.tar.xz openlmi-providers-a9b3e7f90b4d2e3f1e2de158bdd861c859e0c825.zip |
Software-dbus: safer extracting of element name from SwIdentity InstanceID
Diffstat (limited to 'src/software-dbus/LMI_SoftwareIdentityProvider.c')
-rw-r--r-- | src/software-dbus/LMI_SoftwareIdentityProvider.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/software-dbus/LMI_SoftwareIdentityProvider.c b/src/software-dbus/LMI_SoftwareIdentityProvider.c index be22497..7e03bad 100644 --- a/src/software-dbus/LMI_SoftwareIdentityProvider.c +++ b/src/software-dbus/LMI_SoftwareIdentityProvider.c @@ -20,7 +20,7 @@ #include <konkret/konkret.h> #include "LMI_SoftwareIdentity.h" -#include "LMI_Software.h" +#include "sw-utils.h" static const CMPIBroker* _cb = NULL; @@ -80,9 +80,7 @@ static CMPIStatus LMI_SoftwareIdentityGetInstance( init_sw_package(&sw_pkg); - if (create_sw_package_from_elem_name(get_str_property_from_op(cop, - "InstanceID") + strlen(ORGID ":" ORGID "_" SW_IDENTITY_CLASS_NAME ":"), - &sw_pkg) != 0) { + if (get_sw_pkg_from_sw_identity_op(cop, &sw_pkg) != 0) { goto done; } |