mirror of https://github.com/getdnsapi/getdns.git
Merge remote branch 'origin/develop' into feature/check_examples
This commit is contained in:
commit
c09ca85565
|
@ -70,7 +70,7 @@ getdns_convert_dns_name_to_fqdn(char *name_from_dns_response)
|
|||
char *
|
||||
getdns_convert_fqdn_to_dns_name(char *fqdn_as_string)
|
||||
{
|
||||
ldns *rdf;
|
||||
ldns_rdf *rdf;
|
||||
char *data;
|
||||
if (ldns_str2rdf_dname(&rdf, fqdn_as_string) != LDNS_STATUS_OK)
|
||||
return NULL;
|
||||
|
@ -97,6 +97,8 @@ getdns_convert_ulabel_to_alabel(char *ulabel)
|
|||
char *buf;
|
||||
char *prepped;
|
||||
|
||||
if (ulabel == NULL)
|
||||
return 0;
|
||||
setlocale(LC_ALL, "");
|
||||
if ((prepped = stringprep_locale_to_utf8(ulabel)) == 0)
|
||||
return 0;
|
||||
|
@ -125,6 +127,8 @@ getdns_convert_alabel_to_ulabel(char *alabel)
|
|||
int ret; /* just in case we might want to use it someday */
|
||||
char *buf;
|
||||
|
||||
if (alabel == NULL)
|
||||
return 0;
|
||||
if ((ret = idna_to_unicode_8z8z(alabel, &buf, 0)) != IDNA_SUCCESS) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue