and no UID as per RFC-5092 */
if(imap->mailbox && !imap->uid && !imap->mindex) {
/* Get the query parameter, URL decoded */
- (void)curl_url_get(data->state.uh, CURLUPART_QUERY, &imap->query,
- CURLU_URLDECODE);
+ CURLUcode uc = curl_url_get(data->state.uh, CURLUPART_QUERY, &imap->query,
+ CURLU_URLDECODE);
+ if(uc == CURLUE_OUT_OF_MEMORY)
+ return CURLE_OUT_OF_MEMORY;
}
/* Any extra stuff at the end of the URL is an error */
conn->remote_port = (unsigned short)port;
}
- (void)curl_url_get(uh, CURLUPART_QUERY, &data->state.up.query, 0);
+ uc = curl_url_get(uh, CURLUPART_QUERY, &data->state.up.query, 0);
+ if(uc && (uc != CURLUE_NO_QUERY))
+ return CURLE_OUT_OF_MEMORY;
#ifdef USE_IPV6
if(data->set.scope_id)