We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9999907 commit f2c5312Copy full SHA for f2c5312
1 file changed
src/convert.c
@@ -118,13 +118,12 @@ char *
118
getdns_convert_ulabel_to_alabel(const char *ulabel)
119
{
120
#if defined(HAVE_LIBIDN2)
121
- char *alabel;
+ uint8_t *alabel;
122
123
if (!ulabel) return NULL;
124
125
- if (idn2_lookup_ul(ulabel, &alabel, IDN2_NONTRANSITIONAL) == IDN2_OK
126
- || idn2_lookup_ul(ulabel, &alabel, IDN2_TRANSITIONAL) == IDN2_OK)
127
- return alabel;
+ if (idn2_lookup_u8((uint8_t *)ulabel, &alabel, IDN2_TRANSITIONAL) == IDN2_OK)
+ return (char *)alabel;
128
129
#elif defined(HAVE_LIBIDN)
130
char *alabel;
0 commit comments