diff options
author | BALATON Zoltan | 2017-02-07 17:17:03 +0100 |
---|---|---|
committer | BALATON Zoltan | 2017-04-08 15:48:23 +0200 |
commit | 1d844aae7820d10abf9a19b7acfb88341ac6e961 (patch) | |
tree | 3bee7e12e0e102a875e4f707aefb92a63eb1f12f /src | |
parent | f8999ef550fe9a97b24f4bbb17b66f186a5deae1 (diff) | |
download | libimobiledevice-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.c | 2 |
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; |