# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1199959479 -3600
# Node ID b69727ddc9a45a32c75547a90364759500280398
# Parent ca8dc23eacc44970a2d79978bc9de65aaa600b92
HRP: Validation of client given object path
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r ca8dc23eacc4 -r b69727ddc9a4 src/Virt_HostedResourcePool.c
--- a/src/Virt_HostedResourcePool.c Wed Jan 09 13:08:17 2008 +0100
+++ b/src/Virt_HostedResourcePool.c Thu Jan 10 11:04:39 2008 +0100
@@ -68,23 +68,13 @@ static CMPIStatus sys_to_pool(const CMPI
CMPIStatus s = {CMPI_RC_OK, NULL};
int i;
virConnectPtr conn;
- CMPIInstance *host;
- const char *prop;
if (!match_hypervisor_prefix(ref, info))
return s;
- s = get_host_cs(_BROKER, ref, &host);
+ s = validate_host_ref(_BROKER, ref);
if (s.rc != CMPI_RC_OK)
return s;
-
- prop = cu_compare_ref(ref, host);
- if (prop != NULL) {
- cu_statusf(_BROKER, &s,
- CMPI_RC_ERR_NOT_FOUND,
- "No such HostSystem instance (%s)", prop);
- return s;
- }
conn = connect_by_classname(_BROKER, CLASSNAME(ref), &s);
if (conn == NULL)