diff options
Diffstat (limited to 'src/activation.c')
-rw-r--r-- | src/activation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/activation.c b/src/activation.c index dc2de9f..57d5ea1 100644 --- a/src/activation.c +++ b/src/activation.c @@ -135,7 +135,7 @@ static idevice_activation_error_t idevice_activation_parse_buddyml_response(idev xmlXPathObjectPtr xpath_result = NULL; int i = 0; - if (!response->content_type == IDEVICE_ACTIVATION_CONTENT_TYPE_BUDDYML) + if (response->content_type != IDEVICE_ACTIVATION_CONTENT_TYPE_BUDDYML) return IDEVICE_ACTIVATION_E_UNKNOWN_CONTENT_TYPE; doc = xmlReadMemory(response->raw_content, response->raw_content_size, "ideviceactivation.xml", NULL, XML_PARSE_NOERROR); @@ -341,7 +341,7 @@ static idevice_activation_error_t idevice_activation_parse_html_response(idevice xmlXPathContextPtr context = NULL; xmlXPathObjectPtr xpath_result = NULL; - if (!response->content_type == IDEVICE_ACTIVATION_CONTENT_TYPE_HTML) + if (response->content_type != IDEVICE_ACTIVATION_CONTENT_TYPE_HTML) return IDEVICE_ACTIVATION_E_UNKNOWN_CONTENT_TYPE; doc = xmlReadMemory(response->raw_content, response->raw_content_size, "ideviceactivation.xml", NULL, XML_PARSE_RECOVER | XML_PARSE_NOERROR); |