commit | 1b03833da2285f596c4d4bad32b7b50fcbf184bf | [log] [tgz] |
---|---|---|
author | Elvis Pfützenreuter <epx@signove.com> | Wed Nov 10 00:11:48 2010 -0200 |
committer | Jaikumar Ganesh <jaikumar@google.com> | Thu Mar 10 16:47:50 2011 -0800 |
tree | 96bd3c9f5dfab42c3f2a478b60403aed31140212 | |
parent | f24c1259db34363e1d0f51297886c4d509b07e38 [diff] |
Check HealthApplication path before trying to destroy it
diff --git a/health/hdp.c b/health/hdp.c index 1eba8e1..b141fe7 100644 --- a/health/hdp.c +++ b/health/hdp.c
@@ -376,6 +376,12 @@ l = g_slist_find_custom(applications, path, cmp_app); + if (!l) + return g_dbus_create_error(msg, + ERROR_INTERFACE ".InvalidArguments", + "Invalid arguments in method call, " + "no such application"); + app = l->data; applications = g_slist_remove(applications, app);