Change-Id: I4c535d1876d38b460f88f41c168fc5ad7f1235de
}
#elif defined(USE_ICU_IDNA)
char *ace_hostname = malloc(MAX_DOMAIN_NAME_LEN * sizeof(char));
+ if(!ace_hostname)
+ return CURLE_OUT_OF_MEMORY;
UErrorCode errorCode = U_ZERO_ERROR;
UIDNAInfo info = UIDNA_INFO_INITIALIZER;
UIDNA *uts46 =
uidna_close(uts46);
if(errorCode != U_ZERO_ERROR || info.errors || length < 1) {
- infof(data, "Failed to convert %s to ACE;\n", host->name);
+ failf(data, "Failed to convert %s to ACE;\n", host->name);
return CURLE_URL_MALFORMAT;
}
else {