summaryrefslogtreecommitdiffstats
path: root/src/service-dbus
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2013-11-18 14:15:56 +0100
committerRadek Novacek <rnovacek@redhat.com>2013-11-18 14:43:05 +0100
commit0169c7d2a2b26a86eb10542690c557c34fc0eb00 (patch)
tree3b885d1798c418276fbe5e631039048189c76484 /src/service-dbus
parent34e418f1cc72dc79b25c6bc4c7db9866e07c95b8 (diff)
downloadopenlmi-providers-0169c7d2a2b26a86eb10542690c557c34fc0eb00.tar.gz
openlmi-providers-0169c7d2a2b26a86eb10542690c557c34fc0eb00.tar.xz
openlmi-providers-0169c7d2a2b26a86eb10542690c557c34fc0eb00.zip
Fix missing format strings
Missing format strings are considered a vulnerability.
Diffstat (limited to 'src/service-dbus')
-rw-r--r--src/service-dbus/LMI_ServiceProvider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service-dbus/LMI_ServiceProvider.c b/src/service-dbus/LMI_ServiceProvider.c
index 0bc2e77..6fbefe8 100644
--- a/src/service-dbus/LMI_ServiceProvider.c
+++ b/src/service-dbus/LMI_ServiceProvider.c
@@ -52,7 +52,7 @@ static CMPIStatus LMI_ServiceEnumInstanceNames(
slist = service_find_all(output, sizeof(output));
if (slist == NULL) {
- KReturn2(_cb, ERR_FAILED, output);
+ KReturn2(_cb, ERR_FAILED, "%s", output);
}
for (int i = 0; i < slist->cnt; i++) {
@@ -139,7 +139,7 @@ static CMPIStatus LMI_ServiceGetInstance(
} else if (res == -2) { /* service of that name doesn't exist */
KReturn(ERR_NOT_FOUND);
} else { /* some error occured when getting properties */
- KReturn2(_cb, ERR_FAILED, output);
+ KReturn2(_cb, ERR_FAILED, "%s", output);
}
}