summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar BALATON Zoltan2017-02-07 17:17:03 +0100
committerGravatar BALATON Zoltan2017-04-08 15:48:23 +0200
commit1d844aae7820d10abf9a19b7acfb88341ac6e961 (patch)
tree3bee7e12e0e102a875e4f707aefb92a63eb1f12f /src
parentf8999ef550fe9a97b24f4bbb17b66f186a5deae1 (diff)
downloadlibimobiledevice-1d844aae7820d10abf9a19b7acfb88341ac6e961.tar.gz
libimobiledevice-1d844aae7820d10abf9a19b7acfb88341ac6e961.tar.bz2
Fix parameter check of instproxy_check_capabilities_match()
The capabilities parameter is a string array not a plist. Also check other parameters when we are at it.
Diffstat (limited to 'src')
-rw-r--r--src/installation_proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/installation_proxy.c b/src/installation_proxy.c
index 9f367aa..f82eecc 100644
--- a/src/installation_proxy.c
+++ b/src/installation_proxy.c
@@ -772,7 +772,7 @@ LIBIMOBILEDEVICE_API instproxy_error_t instproxy_remove_archive(instproxy_client
LIBIMOBILEDEVICE_API instproxy_error_t instproxy_check_capabilities_match(instproxy_client_t client, const char** capabilities, plist_t client_options, plist_t *result)
{
- if (!capabilities || (plist_get_node_type(capabilities) != PLIST_ARRAY && plist_get_node_type(capabilities) != PLIST_DICT))
+ if (!client || !capabilities || !result)
return INSTPROXY_E_INVALID_ARG;
plist_t lookup_result = NULL;